Benchmarks
Plugin footprint 99% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▲237.99ms] 50% from 4 tests
Server-side resources used by Sitesassure WP Malware Scanner
The following require your attention
- CPU: Total CPU usage must kept under 500.00ms (currently 515.59ms on /wp-admin/admin.php?page=swms_scanner_purchase_page)
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 237.99ms on /wp-admin/admin.php?page=swms_scanner_generate_report)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.24 | 446.82 ▲425.80 |
Dashboard /wp-admin | 3.25 ▲0.19 | 430.60 ▲381.26 |
Posts /wp-admin/edit.php | 3.30 ▲0.20 | 425.77 ▲371.52 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.12 | 475.53 ▼183.82 |
Media Library /wp-admin/upload.php | 3.13 ▲0.13 | 415.58 ▲383.01 |
Dashboard /wp-admin/admin.php?page=swms_scanner | 3.10 | 416.72 |
Report /wp-admin/admin.php?page=swms_scanner_report_page | 3.11 | 439.66 |
Submit Urls /wp-admin/admin.php?page=swms_scanner_submit_url | 3.10 | 419.68 |
Purchase Firewall /wp-admin/admin.php?page=swms_scanner_purchase_page | 3.11 | 515.59 |
FAQ / SUPPORT /wp-admin/admin.php?page=swms_scanner_faq_page | 3.11 | 434.81 |
Generate Report /wp-admin/admin.php?page=swms_scanner_generate_report | 3.10 | 442.34 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 26 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_swms_scanner_manage |
New WordPress options |
---|
swms_quttera_api_url |
swms_quttera_api |
Browser metrics Passed 4 tests
An overview of browser requirements for Sitesassure WP Malware Scanner
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,772 ▲176 | 15.89 ▼0.02 | 8.11 ▼1.90 | 52.33 ▲5.56 |
Dashboard /wp-admin | 3,022 ▲88 | 5.92 ▼0.15 | 136.41 ▼36.63 | 144.95 ▲19.03 |
Posts /wp-admin/edit.php | 2,798 ▲59 | 2.69 ▲0.00 | 61.30 ▼10.91 | 94.31 ▲0.37 |
Add New Post /wp-admin/post-new.php | 2,347 ▲847 | 14.97 ▼3.86 | 385.19 ▲20.57 | 108.65 ▼4.12 |
Media Library /wp-admin/upload.php | 1,882 ▲72 | 4.98 ▼0.04 | 122.43 ▼25.25 | 125.76 ▲13.51 |
Dashboard /wp-admin/admin.php?page=swms_scanner | 1,196 | 2.21 | 55.64 | 77.76 |
Report /wp-admin/admin.php?page=swms_scanner_report_page | 1,084 | 2.08 | 52.26 | 57.53 |
Submit Urls /wp-admin/admin.php?page=swms_scanner_submit_url | 1,149 | 2.10 | 56.81 | 79.32 |
Purchase Firewall /wp-admin/admin.php?page=swms_scanner_purchase_page | 1,178 | 2.10 | 54.06 | 73.92 |
FAQ / SUPPORT /wp-admin/admin.php?page=swms_scanner_faq_page | 1,180 | 2.06 | 57.94 | 56.52 |
Generate Report /wp-admin/admin.php?page=swms_scanner_generate_report | 1,104 | 2.08 | 52.17 | 71.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sitesassure-wp-malware-scanner/sitesassure-wp-malware-scanner.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sitesassure-wp-malware-scanner/inc/swms_faq.php:8
- > PHP Warning
Use of undefined constant SWMS_PLUGIN_ASSETSPATH - assumed 'SWMS_PLUGIN_ASSETSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sitesassure-wp-malware-scanner/inc/swms_faq.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sitesassure-wp-malware-scanner/inc/swms_firewall.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/sitesassure-wp-malware-scanner/inc/swms_report.php:2
- > PHP Warning
Use of undefined constant SWMS_PLUGIN_ASSETSPATH - assumed 'SWMS_PLUGIN_ASSETSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sitesassure-wp-malware-scanner/inc/swms_firewall.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
sitesassure-wp-malware-scanner/sitesassure-wp-malware-scanner.php Passed 13 tests
"Sitesassure WP Malware Scanner" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
128 characters long description:
The Sitesassure WP Malware Scanner Plug-in provides manual malware scan reports: clean, malware, upgrade and blacklisted status.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected3,300 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 25 | 19 | 1,899 |
PHP | 6 | 40 | 43 | 718 |
SVG | 1 | 0 | 0 | 565 |
JavaScript | 1 | 106 | 15 | 118 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 2 | 100.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 0.96KB | 1.03KB | 0.00% |
assets/images/logo.png | 17.22KB | 6.01KB | ▼ 65.08% |
assets/images/css-tooltip-gradient-bg.png | 0.22KB | 0.34KB | 0.00% |