Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼142.35ms] Passed 4 tests
A check of server-side resources used by Threat Scan Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 31.38 ▲9.24 |
Dashboard /wp-admin | 3.13 ▲0.08 | 46.45 ▲2.34 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 39.69 ▼3.94 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 94.14 ▼560.53 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 30.61 ▼7.26 |
Threat Scan /wp-admin/options-general.php?page=threatscan | 3.02 | 26.32 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Threat Scan Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.91 ▲0.04 | 7.45 ▼1.60 | 48.42 ▲3.72 |
Dashboard /wp-admin | 2,972 ▲41 | 5.86 ▼0.09 | 133.32 ▼10.32 | 103.89 ▼2.44 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.68 ▲0.01 | 61.99 ▼7.64 | 87.77 ▼2.13 |
Add New Post /wp-admin/post-new.php | 1,675 ▲177 | 19.14 ▲0.31 | 368.86 ▼8.81 | 112.28 ▲8.66 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.05 ▲0.04 | 156.67 ▲8.74 | 116.10 ▼2.00 |
Threat Scan /wp-admin/options-general.php?page=threatscan | 1,099 | 2.09 | 57.44 | 66.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=threatscan
- > Notice in wp-content/plugins/threat-scan-plugin/threat-scan.php+24
Undefined index: kpg_threat_opt
SRP 50% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/threat-scan-plugin/threat-scan.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: hacked, virus, scan, threats, malicious code
threat-scan-plugin/threat-scan.php 92% from 13 tests
The principal PHP file in "Threat Scan Plugin" v. 1.3 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("threat-scan-plugin.php" instead of "threat-scan.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected369 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 45 | 38 | 369 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin