Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼3.26ms] Passed 4 tests
An overview of server-side resources used by WordPress Spam Blocker | Stop Spam for Contact Form 7, WP Forms and Formidable Forms
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 41.85 ▲1.56 |
Dashboard /wp-admin | 3.62 ▲0.31 | 46.73 ▼1.23 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 47.29 ▼2.18 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 87.83 ▼11.17 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 40.26 ▲2.68 |
WordPress Spam Blocker /wp-admin/admin.php?page=cf7msb-settings | 3.51 | 33.75 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 10 new options
New WordPress options |
---|
cf7msb_settings |
db_upgraded |
widget_theysaidso_widget |
cf7msb_cf7 |
widget_recent-comments |
widget_recent-posts |
cf7msb_version_lite |
can_compress_scripts |
cf7msb_install_date |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress Spam Blocker | Stop Spam for Contact Form 7, WP Forms and Formidable Forms
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲99 | 13.36 ▼1.05 | 1.63 ▼0.50 | 30.35 ▼20.54 |
Dashboard /wp-admin | 2,227 ▲39 | 5.88 ▲0.98 | 96.28 ▼9.42 | 38.06 ▼2.95 |
Posts /wp-admin/edit.php | 2,110 ▲18 | 2.04 ▼0.02 | 40.32 ▲0.61 | 33.12 ▼0.93 |
Add New Post /wp-admin/post-new.php | 1,543 ▲1 | 23.39 ▲5.12 | 684.32 ▲79.70 | 51.77 ▼5.45 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.37 ▲0.19 | 99.56 ▼20.22 | 41.90 ▼4.41 |
WordPress Spam Blocker /wp-admin/admin.php?page=cf7msb-settings | 1,092 | 1.70 | 24.37 | 36.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 9× 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/cf7-manual-spam-blocker/libs/admin/class.wpforms.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cf7-manual-spam-blocker/libs/admin/class.formidable-forms.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-manual-spam-blocker/libs/admin/support-page.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-manual-spam-blocker/libs/admin/class.wpforms.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/cf7-manual-spam-blocker/cf7-manual-spam-blocker.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-manual-spam-blocker/libs/admin/admin-pages.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-manual-spam-blocker/libs/admin/admin-functions.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-manual-spam-blocker/libs/admin/cf7msb-integrate-honeypot.php:42
- > PHP Warning
Use of undefined constant CF7Msb_PLUGIN_PREFIX - assumed 'CF7Msb_PLUGIN_PREFIX' (this will throw an Error in a future version of PHP) in wp-content/plugins/cf7-manual-spam-blocker/libs/admin/support-page.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
cf7-manual-spam-blocker/cf7-manual-spam-blocker.php 92% from 13 tests
The entry point to "WordPress Spam Blocker | Stop Spam for Contact Form 7, WP Forms and Formidable Forms" version 2.0.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 306 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,866 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 397 | 232 | 1,685 |
JavaScript | 2 | 22 | 10 | 104 |
CSS | 2 | 6 | 7 | 77 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 20.22 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 5.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 11 | 26.19% |
▷ Public methods | 41 | 97.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.38% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.34MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/js/img/Cover-800x250.png | 117.39KB | 54.44KB | ▼ 53.62% |
libs/js/img/icon-check.png | 2.24KB | 2.23KB | 0.17% |
libs/js/img/Cover-800x225.png | 107.07KB | 48.56KB | ▼ 54.65% |
libs/js/img/plugin-notice-logo.png | 22.18KB | 6.58KB | ▼ 70.31% |
libs/js/img/Cover-800x200.png | 99.87KB | 45.25KB | ▼ 54.69% |