Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/stop-junk/stop-junk.php+59
Methods with the same name as their class will not be constructors in a future version of PHP; StopJunk has a deprecated constructor
Server metrics [RAM: ▼1.84MB] [CPU: ▼199.07ms] Passed 4 tests
An overview of server-side resources used by Stop Junk
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.79 ▼1.05 | 5.55 ▼30.76 |
Dashboard /wp-admin | 1.80 ▼1.25 | 6.21 ▼52.62 |
Posts /wp-admin/edit.php | 1.81 ▼1.30 | 10.28 ▼42.74 |
Add New Post /wp-admin/post-new.php | 1.81 ▼3.63 | 6.47 ▼670.14 |
Media Library /wp-admin/upload.php | 1.81 ▼1.20 | 9.73 ▼28.56 |
Stop Junk Plugin /wp-admin/plugins.php?page=stopjunkplugin | 1.81 | 5.45 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Stop Junk
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.79 ▲0.34 | 12.01 ▲0.35 | 50.11 ▼1.77 |
Dashboard /wp-admin | 2,969 ▲38 | 5.89 ▼0.05 | 187.02 ▲32.90 | 143.87 ▲24.03 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.01 | 88.81 ▲13.07 | 104.35 ▲11.53 |
Add New Post /wp-admin/post-new.php | 1,686 ▲105 | 18.79 ▼1.51 | 437.52 ▼9.76 | 118.22 ▼2.83 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▼0.02 | 172.76 ▼6.06 | 118.23 ▼8.26 |
Stop Junk Plugin /wp-admin/plugins.php?page=stopjunkplugin | 1,029 | 2.09 | 61.31 | 73.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/stop-junk/stop-junk.php+59
Methods with the same name as their class will not be constructors in a future version of PHP; StopJunk has a deprecated constructor
Smoke tests 50% 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)
Please fix the following server-side errors
- > GET request to /wp-admin/plugins.php?page=stopjunkplugin
- > Deprecated in wp-content/plugins/stop-junk/stop-junk.php+59
Methods with the same name as their class will not be constructors in a future version of PHP; StopJunk has a deprecated constructor
SRP 50% 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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/stop-junk/stop-junk.php:67
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (Screenshot of plugin on Comments form)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== stop-junk ===
)
stop-junk/stop-junk.php 92% from 13 tests
The main PHP script in "Stop Junk" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 146 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin83 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 186 | 40 | 83 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 7.18KB | 6.11KB | ▼ 14.90% |