Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.23ms] Passed 4 tests
An overview of server-side resources used by System Vulnerability Scanner
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.24 ▼0.25 |
Dashboard /wp-admin | 3.34 ▼0.00 | 51.01 ▼14.18 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 51.19 ▼4.38 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 100.14 ▼6.10 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 37.95 ▲1.66 |
Vulnerability Scan /wp-admin/options-general.php?page=system-vul-scan | 3.21 | 35.20 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for System Vulnerability Scanner
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲11 | 14.69 ▲0.34 | 1.71 ▼0.15 | 39.46 ▼2.72 |
Dashboard /wp-admin | 2,200 ▲20 | 5.61 ▲0.00 | 92.24 ▼3.69 | 45.77 ▲4.73 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.03 ▲0.04 | 39.13 ▼1.60 | 34.70 ▼3.68 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.30 ▼0.35 | 628.15 ▼53.14 | 50.23 ▼13.01 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.19 ▲0.01 | 95.78 ▼8.10 | 42.93 ▼0.52 |
Vulnerability Scan /wp-admin/options-general.php?page=system-vul-scan | 1,226 | 1.96 | 38.05 | 35.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=system-vul-scan
- > Notice in wp-content/plugins/system-vulnerability-scanner/scan.php+43
Undefined variable: passcoun
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/system-vulnerability-scanner/scan.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/system-vulnerability-scanner/scan.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=system-vul-scan
- > Network (severe)
wp-content/plugins/dh-system-vul-scanner/style.css?ver=0.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: scan, security, vulnerability
system-vulnerability-scanner/system-vul-scan.php 77% from 13 tests
The principal PHP file in "System Vulnerability Scanner" v. 0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.6" instead of "4.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("system-vulnerability-scanner.php" instead of "system-vul-scan.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected243 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 13 | 13 | 242 |
CSS | 1 | 0 | 4 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin