Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.79MB] [CPU: ▲24.26ms] Passed 4 tests
A check of server-side resources used by SpamJam
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.91 ▲5.18 | 66.39 ▲20.96 |
Dashboard /wp-admin | 8.93 ▲5.37 | 76.56 ▲24.27 |
Posts /wp-admin/edit.php | 8.93 ▲5.25 | 83.97 ▲32.48 |
Add New Post /wp-admin/post-new.php | 9.52 ▲3.38 | 126.20 ▲19.33 |
Media Library /wp-admin/upload.php | 8.93 ▲5.44 | 73.04 ▲34.38 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.93 | 62.56 |
Server storage [IO: ▲3.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 197 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
fs_accounts |
fs_active_plugins |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
fs_debug_mode |
Browser metrics Passed 4 tests
SpamJam: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 14.74 ▲0.47 | 1.65 ▲0.05 | 31.74 ▼10.29 |
Dashboard /wp-admin | 2,237 ▲60 | 5.69 ▲0.05 | 95.11 ▲3.48 | 45.02 ▲2.64 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.03 ▲0.01 | 42.02 ▲4.99 | 38.04 ▲7.64 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 17.53 ▼0.13 | 616.38 ▼19.10 | 65.35 ▲5.01 |
Media Library /wp-admin/upload.php | 1,439 ▲45 | 4.21 ▲0.04 | 106.58 ▲2.42 | 47.74 ▲3.57 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,097 | 1.69 | 27.30 | 29.40 |
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
- > Notice in wp-content/plugins/spamjam/vendor/freemius/wordpress-sdk/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- fs_active_plugins
- can_compress_scripts
- db_upgraded
- fs_accounts
- widget_recent-comments
- fs_debug_mode
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
7 plugin tags: spamjam, comment spam, registration spam, antispam, spam jam...
spamjam/spamjam.php Passed 13 tests
The principal PHP file in "SpamJam" v. 0.4.0 is loaded by WordPress automatically on each request
57 characters long description:
SpamJam silently kills spam in comments and registration.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected34,041 lines of code in 148 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 129 | 8,132 | 17,722 | 33,731 |
JavaScript | 3 | 34 | 59 | 194 |
JSON | 2 | 0 | 0 | 53 |
PO File | 1 | 13 | 14 | 50 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 87.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,300 | |
▷ Static methods | 216 | 16.62% |
▷ Public methods | 908 | 69.85% |
▷ Protected methods | 17 | 1.31% |
▷ Private methods | 375 | 28.85% |
Functions | 113 | |
▷ Named functions | 111 | 98.23% |
▷ Anonymous functions | 2 | 1.77% |
Constants | 145 | |
▷ Global constants | 98 | 67.59% |
▷ Class constants | 47 | 32.41% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
vendor/freemius/wordpress-sdk/assets/img/spamjam.png | 80.08KB | 33.69KB | ▼ 57.93% |