Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/spamlord/spamlord.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; SpamLord has a deprecated constructor
Server metrics [RAM: ▼2.27MB] [CPU: ▼362.69ms] Passed 4 tests
Server-side resources used by SpamLord
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.42 | 5.87 ▼55.22 |
Dashboard /wp-admin | 2.12 ▼1.29 | 4.49 ▼29.17 |
Posts /wp-admin/edit.php | 2.12 ▼1.52 | 4.54 ▼32.18 |
Add New Post /wp-admin/post-new.php | 2.12 ▼4.85 | 4.10 ▼1,334.20 |
Media Library /wp-admin/upload.php | 2.12 ▼1.18 | 4.82 ▼18.36 |
SpamLord /wp-admin/options-general.php?page=spamlord | 2.12 | 4.92 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options |
---|
spamlord |
Browser metrics Passed 4 tests
SpamLord: 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,782 ▲60 | 15.95 ▲0.87 | 5.84 ▲0.27 | 2.31 ▲0.03 |
Dashboard /wp-admin | 2,916 ▲55 | 5.98 ▼0.20 | 150.07 ▲13.00 | 173.68 ▲2.73 |
Posts /wp-admin/edit.php | 2,695 ▲1 | 3.22 ▼0.00 | 70.23 ▲4.49 | 152.94 ▲3.18 |
Add New Post /wp-admin/post-new.php | 1,651 ▲16 | 20.88 ▲1.81 | 523.92 ▲36.33 | 203.09 ▲13.43 |
Media Library /wp-admin/upload.php | 1,702 ▲4 | 5.52 ▼0.02 | 177.86 ▲32.02 | 217.60 ▼49.04 |
SpamLord /wp-admin/options-general.php?page=spamlord | 1,141 | 2.37 | 54.81 | 185.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/spamlord/spamlord.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; SpamLord has a deprecated constructor
- This plugin did not uninstall successfully, leaving 1 option in the database
- spamlord
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=spamlord
- > Deprecated in wp-content/plugins/spamlord/spamlord.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; SpamLord has a deprecated constructor
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spamlord/spamlord.php:39
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== spamlord ===
)
spamlord/spamlord.php Passed 13 tests
"SpamLord" version 0.667's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
32 characters long description:
Never see your spam alive again.
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
There were no executable files found in this plugin249 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 68 | 63 | 245 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 52.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 4.32 |
▷ 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 | 31 | |
▷ Static methods | 1 | 3.23% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
spamlord_screenicon.png | 3.87KB | 2.33KB | ▼ 39.96% |