Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/spamfck/antispam-revolution.php+296
file(.htaccess): failed to open stream: No such file or directory
Server metrics [RAM: ▼1.95MB] [CPU: ▼50.02ms] Passed 4 tests
This is a short check of server-side resources used by Antispam Revolution
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.47 ▼35.07 |
Dashboard /wp-admin | 2.05 ▼1.25 | 9.69 ▼39.99 |
Posts /wp-admin/edit.php | 2.05 ▼1.30 | 5.82 ▼41.42 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.83 | 6.58 ▼83.59 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 7.66 ▼21.44 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- The plugin illegally modified 2 files (1.11KB) outside of "wp-content/plugins/spamfck/" and "wp-content/uploads/"
- (modified) .htaccess
- (new file) wp-admin/.htaccess
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
antispamrevolution_stats |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Antispam Revolution
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.65 ▼1.03 | 4.46 ▲2.76 | 42.45 ▼6.93 |
Dashboard /wp-admin | 2,222 ▲34 | 4.87 ▼0.03 | 108.38 ▲8.11 | 41.62 ▼5.75 |
Posts /wp-admin/edit.php | 2,105 ▲19 | 1.97 ▼0.03 | 40.10 ▲0.19 | 37.05 ▲0.43 |
Add New Post /wp-admin/post-new.php | 1,560 ▲27 | 18.43 ▼4.97 | 587.89 ▼54.42 | 60.33 ▼11.84 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.23 ▼0.13 | 95.67 ▲1.12 | 42.08 ▲1.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/spamfck/antispam-revolution.php+300
The each() function is deprecated. This message will be suppressed on further calls
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- antispamrevolution_stats
- widget_recent-comments
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
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/spamfck/antispam-revolution.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: protection, comments, spam
spamfck/antispam-revolution.php 85% from 13 tests
The main file in "Antispam Revolution" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 ("spamfck.php" instead of "antispam-revolution.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 430 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected258 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 53 | 35 | 258 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected