Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼6.24ms] Passed 4 tests
A check of server-side resources used by Spam Destroyer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 40.87 ▼8.44 |
Dashboard /wp-admin | 3.43 ▲0.08 | 55.74 ▼5.74 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 50.59 ▲2.43 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 93.30 ▼7.57 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 40.43 ▼3.19 |
Server storage [IO: ▲1.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
spam-destroyer-key |
widget_recent-posts |
spam-destroyer-version |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Spam Destroyer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲79 | 13.36 ▼1.01 | 1.92 ▼0.20 | 48.56 ▲4.32 |
Dashboard /wp-admin | 2,224 ▲18 | 4.87 ▼1.03 | 99.27 ▼8.57 | 39.54 ▼4.12 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.03 | 37.61 ▼1.06 | 35.58 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,554 ▲22 | 18.40 ▼4.80 | 640.89 ▼79.83 | 92.97 ▲22.72 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.28 ▲0.09 | 101.84 ▼6.72 | 45.21 ▼8.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/spam-destroyer/index.php
- > /wp-content/plugins/spam-destroyer/uninstall.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Spam_Destroyer' not found in wp-content/plugins/spam-destroyer/inc/class-spam-destroyer-generate-captcha.php:12
- > PHP Fatal error
Uncaught Error: Class 'Spam_Destroyer' not found in wp-content/plugins/spam-destroyer/inc/class-spam-destroyer-add-meta.php:14
- > PHP Fatal error
Uncaught Error: Class 'Spam_Destroyer' not found in wp-content/plugins/spam-destroyer/inc/class-spam-destroyer-captcha-question.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spam-destroyer/inc/class-spam-destroyer-stats.php:32
- > PHP Fatal error
Uncaught Error: Class 'Spam_Destroyer' not found in wp-content/plugins/spam-destroyer/inc/class-spam-destroyer-settings.php:12
- > PHP Warning
Use of undefined constant HOUR_IN_SECONDS - assumed 'HOUR_IN_SECONDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/spam-destroyer/inc/class-spam-destroyer.php on line 516
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/spam-destroyer/inc/class-spam-destroyer.php:73
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
spam-destroyer/index.php 92% from 13 tests
"Spam Destroyer" version 2.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("spam-destroyer.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected824 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 236 | 470 | 768 |
JavaScript | 2 | 6 | 22 | 56 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 14.43 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 75.00% |
▷ Protected methods | 11 | 25.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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