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.12MB] [CPU: ▲131.41ms] Passed 4 tests
Server-side resources used by Comment SPAM Wiper
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.01 ▼0.77 |
Dashboard /wp-admin | 3.50 ▲0.19 | 985.47 ▲932.40 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 180.36 ▲123.68 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 370.04 ▲260.15 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 180.55 ▲142.56 |
/wp-admin/admin.php?page=comment-spam-wiper/admin.php | 3.39 | 214.83 |
Settings /wp-admin/admin.php?page=csw_settings_page | 3.31 | 294.78 |
Statistics /wp-admin/admin.php?page=csw_stats_page | 3.28 | 205.18 |
Dashboard /wp-admin/admin.php?page=csw_main_page | 3.39 | 208.32 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Comment SPAM Wiper
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲128 | 14.65 ▲0.27 | 1.80 ▼0.39 | 41.41 ▼1.74 |
Dashboard /wp-admin | 2,263 ▲75 | 5.88 ▲1.00 | 97.50 ▼8.53 | 77.42 ▲32.69 |
Posts /wp-admin/edit.php | 2,122 ▲30 | 2.01 ▲0.00 | 36.47 ▼6.09 | 37.57 ▲5.44 |
Add New Post /wp-admin/post-new.php | 1,694 ▲174 | 21.91 ▼1.20 | 710.40 ▲16.73 | 52.32 ▼0.07 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.22 ▼0.02 | 98.65 ▼7.54 | 66.19 ▲20.71 |
/wp-admin/admin.php?page=comment-spam-wiper/admin.php | 798 | 2.20 | 27.28 | 26.05 |
Settings /wp-admin/admin.php?page=csw_settings_page | 814 | 2.04 | 27.71 | 26.50 |
Statistics /wp-admin/admin.php?page=csw_stats_page | 816 | 1.86 | 24.85 | 24.05 |
Dashboard /wp-admin/admin.php?page=csw_main_page | 795 | 2.06 | 27.45 | 28.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=csw_main_page
- > Notice in wp-content/plugins/comment-spam-wiper/admin.php+34
Undefined variable: rss_items
- > GET request to /wp-admin/admin.php?page=csw_stats_page
- > Warning in wp-content/plugins/comment-spam-wiper/admin.php+106
file_get_contents(http://www.spamwipe.com/exip.php): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/comment-spam-wiper/admin.php:123
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/comment-spam-wiper/csw.php:30
- > 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 errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: spam, block, comments, blog, comment...
comment-spam-wiper/csw.php 92% from 13 tests
"Comment SPAM Wiper" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("comment-spam-wiper.php" instead of "csw.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
Everything looks great! No dangerous files found in this plugin601 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 127 | 87 | 601 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon.png | 0.84KB | 0.78KB | ▼ 6.64% |