PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 6.3.0
Defender Security – Malware Scanner, Login Security & Firewall v6.3.0
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
← All changes | src/helper/analytics/class-scan.php +18 -9 5.6.0 → 6.3.0 View file →
@@ -50,10 +50,8 @@
50 50 }
51 51
52 52 /**
53 53 * Removes settings for all submodules.
54 - *
55 - * @return mixed
56 54 */
57 55 public function remove_settings() {
58 56 }
59 57
@@ -58,10 +56,8 @@
58 56 }
59 57
60 58 /**
61 59 * Delete all the data & the cache.
62 - *
63 - * @return mixed
64 60 */
65 61 public function remove_data() {
66 62 }
67 63
@@ -101,19 +97,32 @@
101 97
102 98 if ( isset( $scan_item_group_total[ Scan_Item::TYPE_INTEGRITY ] ) ) {
103 99 $data['WP core issue count'] = $scan_item_group_total[ Scan_Item::TYPE_INTEGRITY ];
104 100 }
105 -
106 101 if ( isset( $scan_item_group_total[ Scan_Item::TYPE_SUSPICIOUS ] ) ) {
107 102 $data['Suspicious Code'] = $scan_item_group_total[ Scan_Item::TYPE_SUSPICIOUS ];
103 + // Additional JS file count if found.
104 + $items = $last_scan->get_issues( Scan_Item::TYPE_SUSPICIOUS, Scan_Item::STATUS_ACTIVE );
105 + $count_js_files = 0;
106 + foreach ( $items as $item ) {
107 + if (
108 + isset( $item->raw_data['file'] ) && is_file( $item->raw_data['file'] ) &&
109 + 'js' === strtolower( pathinfo( $item->raw_data['file'], PATHINFO_EXTENSION ) )
110 + ) {
111 + ++$count_js_files;
112 + }
113 + }
114 + if ( $count_js_files > 0 ) {
115 + $data['JS file Detection'] = $count_js_files;
116 + }
108 117 }
109 118
119 + if ( isset( $scan_item_group_total[ Scan_Item::TYPE_VULNERABILITY ] ) ) {
120 + $data['Vulnerability'] = $scan_item_group_total[ Scan_Item::TYPE_VULNERABILITY ];
121 + }
122 +
110 123 if ( isset( $scan_item_group_total[ Scan_Item::TYPE_PLUGIN_CHECK ] ) ) {
111 124 $data['Plugin file modified'] = $scan_item_group_total[ Scan_Item::TYPE_PLUGIN_CHECK ];
112 - }
113 -
114 - if ( isset( $scan_item_group_total[ Scan_Item::TYPE_VULNERABILITY ] ) ) {
115 - $data['Vulnerability'] = $scan_item_group_total[ Scan_Item::TYPE_VULNERABILITY ];
116 125 }
117 126
118 127 $is_closed = false;
119 128 $is_outdated = false;