Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.27ms] Passed 4 tests
Analyzing server-side resources used by SpamPatrol
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.08 ▲2.24 |
Dashboard /wp-admin | 3.36 ▲0.02 | 49.73 ▼7.21 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 45.76 ▲1.18 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 83.14 ▼17.30 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.34 ▲6.25 |
SpamPatrol /wp-admin/options-general.php?page=spampatrol-plugin | 3.23 | 28.63 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
spampatrol_settings |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for SpamPatrol
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.27 ▼0.08 | 1.83 ▲0.06 | 44.05 ▲3.89 |
Dashboard /wp-admin | 2,196 ▲18 | 5.55 ▼0.06 | 86.89 ▼10.24 | 38.65 ▼6.60 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.06 | 33.56 ▼8.61 | 34.68 ▲0.41 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.60 ▲0.60 | 667.61 ▼25.23 | 54.93 ▲5.89 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.12 ▼0.04 | 108.84 ▲4.50 | 45.33 ▲0.17 |
SpamPatrol /wp-admin/options-general.php?page=spampatrol-plugin | 862 | 1.99 | 22.46 | 28.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- spampatrol_settings
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=spampatrol-plugin
- > Notice in wp-content/plugins/spampatrol/admin.php+73
Undefined index: alt_recipient
- > GET request to /wp-admin/options-general.php?page=spampatrol-plugin
- > Notice in wp-content/plugins/spampatrol/admin.php+80
Undefined index: subject_prefix
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Donate link: Please fix this invalid URI: ""
- Requires php: Version not formatted correctly
spampatrol/index.php 92% from 13 tests
The primary PHP file in "SpamPatrol" version 1.35.16 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("spampatrol.php" instead of "index.php")
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 detected375 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 69 | 75 | 375 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 8 | 66.67% |
▷ Anonymous functions | 4 | 33.33% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin