Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.15ms] Passed 4 tests
Analyzing server-side resources used by Formidable Anti-Spam
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.27 ▲0.66 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.03 ▼4.00 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 46.70 ▼0.36 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 92.76 ▼0.91 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.16 ▲1.60 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
frmantispam_settings |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Formidable Anti-Spam
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.16 ▼1.22 | 1.94 ▲0.32 | 43.04 ▲1.62 |
Dashboard /wp-admin | 2,206 ▲54 | 5.84 ▲0.18 | 94.69 ▼10.85 | 40.14 ▼0.76 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.02 ▼0.03 | 35.13 ▼7.57 | 34.48 ▼4.28 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.57 ▼4.82 | 591.66 ▼40.63 | 52.50 ▼6.02 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.36 ▲0.06 | 99.68 ▼2.95 | 41.16 ▼2.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- frmantispam_settings
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 6× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/formidable-anti-spam/includes/global-settings.php
- > /wp-content/plugins/formidable-anti-spam/includes/form-options.php
- > /wp-content/plugins/formidable-anti-spam/classes/FrmAntiSpamActions.php
- > /wp-content/plugins/formidable-anti-spam/classes/FrmAntiSpamFormOptions.php
- > /wp-content/plugins/formidable-anti-spam/classes/FrmAntiSpamGlobalSettingsForm.php
- > /wp-content/plugins/formidable-anti-spam/classes/FrmAntiSpamGlobalSettings.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/formidable-anti-spam/classes/FrmAntiSpamGlobalSettings.php:21
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: bot, anti-spam, form, formidable pro, capcha...
formidable-anti-spam/formidable-anti-spam.php Passed 13 tests
The entry point to "Formidable Anti-Spam" version 1.0 is a PHP file that has certain tags in its header comment area
89 characters long description:
A lightweight Formidable Pro anti-spam add-on that requires no interaction with the user.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin314 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 0 | 9 | 314 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 7.40 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 10 | 45.45% |
▷ Public methods | 21 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.55% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
No PNG images were found in this plugin