Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/formspammertrap-for-comments/FormSpammerTrap4Comments.php+769
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.96MB] [CPU: ▼57.73ms] Passed 4 tests
Server-side resources used by Form Spammer Trap for Comments
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.66 ▼35.28 |
Dashboard /wp-admin | 2.05 ▼1.26 | 7.03 ▼47.90 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.71 ▼45.19 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.81 ▼102.55 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.82 ▼30.27 |
FormSpammerTrap for Comments Settings /wp-admin/options-general.php?page=fst4c_settings_options_page | 2.05 | 5.78 |
Server storage [IO: ▲8.70MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Form Spammer Trap for Comments
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.27 ▼0.12 | 1.73 ▲0.09 | 37.87 ▼6.32 |
Dashboard /wp-admin | 2,192 ▲15 | 5.53 ▼0.03 | 88.04 ▼4.63 | 36.64 ▼8.02 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.00 ▼0.00 | 39.30 ▲1.29 | 31.35 ▼5.24 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.55 ▲0.16 | 638.81 ▼16.32 | 58.76 ▲13.05 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.19 ▼0.12 | 104.01 ▼2.02 | 40.85 ▼5.66 |
FormSpammerTrap for Comments Settings /wp-admin/options-general.php?page=fst4c_settings_options_page | 1,313 | 2.03 | 23.70 | 60.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/formspammertrap-for-comments/FormSpammerTrap4Comments.php+769
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 16 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=fst4c_settings_options_page
- > Notice in wp-content/plugins/formspammertrap-for-comments/FormSpammerTrap4Comments.php+632
Trying to access array offset on value of type bool
SRP 50% 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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/formspammertrap-for-comments/FormSpammerTrap4Comments.php:53
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: spam, spambot protection, stop, comments, form spam
formspammertrap-for-comments/FormSpammerTrap4Comments.php 62% from 13 tests
The main PHP script in "Form Spammer Trap for Comments" version 4.00 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 622 characters long)
- Domain Path: You should use only dashes and lowercase characters for the domain path ("")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("formspammertrap-for-comments.php" instead of "FormSpammerTrap4Comments.php")
- Domain Path: Please prefix the domain path with a forward slash character ("/")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
There were no executable files found in this plugin1,053 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 202 | 289 | 963 |
CSS | 1 | 3 | 11 | 76 |
XML | 2 | 0 | 0 | 14 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 92.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.32% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 3.07MB with 2.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 569.28KB | 34.29KB | ▼ 93.98% |
css/soda-cup-straw.png | 121.76KB | 58.15KB | ▼ 52.24% |
assets/banner-1000x200.png | 604.59KB | 80.94KB | ▼ 86.61% |
assets/icon-128x128.png | 220.70KB | 11.40KB | ▼ 94.83% |
assets/banner-772x250.png | 677.74KB | 84.80KB | ▼ 87.49% |