Benchmarks
Plugin footprint Passed 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: ▲1.03MB] [CPU: ▼268.83ms] Passed 4 tests
An overview of server-side resources used by Spam Master
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.60 ▲1.47 | 82.13 ▲62.01 |
Dashboard /wp-admin | 4.44 ▲1.03 | 60.33 ▼24.96 |
Posts /wp-admin/edit.php | 4.66 ▲1.02 | 62.19 ▲23.55 |
Add New Post /wp-admin/post-new.php | 7.97 ▲1.00 | 122.74 ▼1,135.90 |
Media Library /wp-admin/upload.php | 4.38 ▲1.08 | 117.37 ▲91.31 |
Server storage [IO: ▲0.63MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 63 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_spam_master_keys |
New WordPress options |
---|
spam_master_connection |
spam_master_upgrade_to_6_7_2 |
spam_master_upgrade_to_6_6_19 |
spam_master_upgrade_to_6_6_2 |
spam_master_upgrade_to_6_7_0 |
spam_master_upgrade_to_6_6_5 |
spam_master_upgrade_to_6_6_1 |
spam_master_keys_db_version |
spam_master_upgrade_to_6_6_0 |
spam_master_upgrade_to_6_6_3 |
... |
Browser metrics Passed 4 tests
Spam Master: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,784 ▲29 | 15.54 ▼0.11 | 5.98 ▼0.17 | 2.38 ▼0.94 |
Dashboard /wp-admin | 2,875 ▲14 | 6.12 ▼0.04 | 116.03 ▼20.35 | 141.97 ▼25.95 |
Posts /wp-admin/edit.php | 2,685 ▲1 | 3.24 ▲0.00 | 66.71 ▼30.08 | 187.59 ▲29.23 |
Add New Post /wp-admin/post-new.php | 1,689 ▼28 | 20.47 ▼0.79 | 489.44 ▲38.37 | 159.72 ▼27.81 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.53 ▲0.00 | 155.68 ▲11.91 | 185.60 ▼9.43 |
Spam Master /wp-admin/spam-master.php | 26 | 0.94 | 0.03 | 21.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/spam-master/includes/admin/spam-master-admin-status-table.php
- 38× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/spam-master/includes/protection/spam-master-signatures.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/spam-master/includes/admin/spam-master-admin-upgrade-to-6-6-5.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/spam-master/includes/admin/spam-master-admin-connection-sender.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/spam-master/includes/admin/spam-master-admin-upgrade-to-6.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spam-master/includes/protection/spam-master-action.php:69
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/spam-master/includes/admin/spam-master-admin-upgrade-to-6-6-1.php:4
- > PHP Warning
constant(): Couldn't find constant SPAM_MASTER_NAME in wp-content/plugins/spam-master/includes/admin/spam-master-admin-footer.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/spam-master/includes/protection/spam-master-woocommerce-sig.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/spam-master/includes/admin/spam-master-admin-footer.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/spam-master/includes/protection/spam-master-shortcodes.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/spam-master.php
- > Network (severe)
wp-admin/spam-master.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 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
8 plugin tags: firewall, anti-flood, brute force, spam, anti-crawler...
spam-master/spam-master.php Passed 13 tests
"Spam Master" version 6.7.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
135 characters long description:
Spam Master is the Ultimate Spam Protection plugin that blocks new user registrations and post comments with Real Time anti-spam lists.
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
Success! There were no dangerous files found in this plugin10,408 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 679 | 1,054 | 9,612 |
CSS | 3 | 58 | 9 | 766 |
HTML | 1 | 0 | 37 | 30 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 28.07 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 168.00 |
Average method complexity | 6.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 2 | 3.23% |
▷ Public methods | 62 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 64 | |
▷ Named functions | 63 | 98.44% |
▷ Anonymous functions | 1 | 1.56% |
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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/spam-master-stars.png | 3.92KB | 1.88KB | ▼ 51.94% |
images/spammaster-logo.png | 1.46KB | 1.32KB | ▼ 9.81% |