Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/space-remover/classes/mgwe_space_remover_class.php+48
Accessing static property MGWESpaceRemover::$Admin as non static
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.48ms] Passed 4 tests
Server-side resources used by Space Remover
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.94 ▼40.26 |
Dashboard /wp-admin | 2.05 ▼1.26 | 10.26 ▼45.17 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.19 ▼44.75 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.31 ▼83.73 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.14 ▼32.55 |
MGWE Space Remover /wp-admin/options-general.php?page=MGWESpaceRemover | 2.05 | 5.55 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Space Remover: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.23 ▼0.32 | 1.74 ▲0.15 | 44.44 ▼1.89 |
Dashboard /wp-admin | 2,205 ▲28 | 5.63 ▲0.03 | 83.01 ▼17.41 | 43.05 ▼1.10 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.97 ▼0.03 | 35.58 ▼1.89 | 33.18 ▼3.68 |
Add New Post /wp-admin/post-new.php | 6,236 ▲4,710 | 18.86 ▼4.82 | 933.65 ▲277.94 | 52.94 ▲2.37 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.38 ▲0.22 | 101.71 ▼29.79 | 44.37 ▼8.63 |
MGWE Space Remover /wp-admin/options-general.php?page=MGWESpaceRemover | 833 | 2.01 | 26.84 | 27.78 |
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
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/space-remover/classes/mgwe_space_remover_class.php+48
Accessing static property MGWESpaceRemover::$Admin as non static
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=MGWESpaceRemover
- > Notice in wp-content/plugins/space-remover/classes/mgwe_space_remover_class.php+48
Accessing static property MGWESpaceRemover::$Admin as non static
SRP 0% from 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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/space-remover/space-remover.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'MGWESpaceRemover' not found in wp-content/plugins/space-remover/classes/mgwe_space_remover_admin_class.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 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
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Space Remover settings page), #2 (Space Remover individual page disabler)
- Donate link: Invalid url: ""
space-remover/space-remover.php Passed 13 tests
"Space Remover" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
38 characters long description:
Plugin for removing unnecessary spaces
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin170 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 106 | 140 | 170 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
2 PNG files occupy 0.35MB with 0.24MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 99.31KB | 27.58KB | ▼ 72.23% |
screenshot-2.png | 255.93KB | 82.77KB | ▼ 67.66% |