Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/act-stop-spam/act-stop-spam.php+291
Use of undefined constant ACT_STOP_SPAM_KEY - assumed 'ACT_STOP_SPAM_KEY' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.04MB] [CPU: ▼300.24ms] Passed 4 tests
Server-side resources used by Act Stop Spam
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.12 | 57.87 ▲8.03 |
Dashboard /wp-admin | 3.48 ▲0.07 | 33.24 ▼2.08 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 38.19 ▼12.19 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.03 | 95.45 ▼1,178.97 |
Media Library /wp-admin/upload.php | 3.36 ▲0.05 | 24.03 ▼7.71 |
Act Stop Spam /wp-admin/options-general.php?page=act_stop_spam_settings_menu | 3.30 | 23.39 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_act_stop_spam |
New WordPress options |
---|
ACT_STOP_SPAM_KEY |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Act Stop Spam
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,783 ▲61 | 15.93 ▲0.18 | 5.53 ▼1.26 | 2.34 ▼0.12 |
Dashboard /wp-admin | 2,912 ▲51 | 6.02 ▼0.17 | 119.58 ▼12.54 | 156.06 ▼4.83 |
Posts /wp-admin/edit.php | 2,708 ▲14 | 3.23 ▼0.00 | 64.08 ▼1.75 | 138.91 ▼5.50 |
Add New Post /wp-admin/post-new.php | 1,794 ▲13 | 17.32 ▼5.48 | 422.91 ▼18.01 | 157.62 ▼2.62 |
Media Library /wp-admin/upload.php | 1,712 ▲14 | 5.51 ▼0.01 | 137.44 ▼8.57 | 186.46 ▼6.05 |
Act Stop Spam /wp-admin/options-general.php?page=act_stop_spam_settings_menu | 2,353 | 8.84 | 154.59 | 187.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=act_stop_spam_settings_menu
- > Warning in wp-content/plugins/act-stop-spam/act-stop-spam.php+235
Use of undefined constant ACT_STOP_SPAM_KEY - assumed 'ACT_STOP_SPAM_KEY' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 102× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: actstopspam_confidence in wp-content/plugins/act-stop-spam/act-stop-spam-options.php on line 39
- > PHP Notice
Undefined variable: actstopspam_confidence in wp-content/plugins/act-stop-spam/act-stop-spam-options.php on line 39
- > PHP Notice
Undefined variable: actstopspam_confidence in wp-content/plugins/act-stop-spam/act-stop-spam-options.php on line 39
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/act-stop-spam/includes/class-act-table.php:12
- > PHP Notice
Undefined variable: actstopspam_confidence in wp-content/plugins/act-stop-spam/act-stop-spam-options.php on line 39
- > PHP Notice
Undefined variable: actstopspam_confidence in wp-content/plugins/act-stop-spam/act-stop-spam-options.php on line 39
- > PHP Notice
Undefined variable: actstopspam_confidence in wp-content/plugins/act-stop-spam/act-stop-spam-options.php on line 39
- > PHP Notice
Undefined variable: actstopspam_confidence in wp-content/plugins/act-stop-spam/act-stop-spam-options.php on line 39
- > PHP Notice
Undefined variable: actstopspam_confidence in wp-content/plugins/act-stop-spam/act-stop-spam-options.php on line 39
- > PHP Notice
Undefined variable: actstopspam_confidence in wp-content/plugins/act-stop-spam/act-stop-spam-options.php on line 39
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: stop forum spam, spam protection, stop, spam, wp protection...
act-stop-spam/act-stop-spam.php 92% from 13 tests
The primary PHP file in "Act Stop Spam" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 211 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin485 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 59 | 207 | 485 |
PHP code Passed 2 tests
An short overview of 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.31 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 39 | |
▷ Static methods | 11 | 28.21% |
▷ Public methods | 32 | 82.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 17.95% |
Functions | 2 | |
▷ Named functions | 2 | 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 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
There were not PNG files found in your plugin