Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.91ms] Passed 4 tests
Analyzing server-side resources used by Powered Minifier
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.46 ▲3.47 |
Dashboard /wp-admin | 3.38 ▲0.04 | 49.80 ▼8.34 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 43.91 ▲1.84 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 80.41 ▼12.05 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 35.62 ▲2.91 |
Powered Minifier /wp-admin/options-general.php?page=powered-minifier-admin | 3.35 | 29.71 |
Server storage [IO: ▲1.71MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
_powered_minifier |
Browser metrics Passed 4 tests
An overview of browser requirements for Powered Minifier
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.41 ▼0.06 | 1.84 ▲0.11 | 42.31 ▲4.48 |
Dashboard /wp-admin | 2,202 ▲24 | 5.56 ▼0.17 | 95.54 ▼10.46 | 44.68 ▲3.18 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▲0.01 | 34.75 ▼2.74 | 34.47 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.57 ▲0.13 | 665.53 ▼1.41 | 61.18 ▼0.74 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.17 ▲0.07 | 99.17 ▼3.99 | 43.47 ▼2.95 |
Powered Minifier /wp-admin/options-general.php?page=powered-minifier-admin | 1,115 | 1.68 | 24.69 | 53.28 |
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: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/powered-minifier/admin/partials/powered-minifier-admin-options.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (A general view of the plugin "options" page.), #2 (A screenshot of the code source of a minified page.)
powered-minifier/powered-minifier.php 92% from 13 tests
Analyzing the main PHP file in "Powered Minifier" version 1.7.5
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 170 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,595 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 132 | 420 | 832 |
CSS | 3 | 118 | 44 | 737 |
JavaScript | 2 | 1 | 0 | 26 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 13.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 2 | 4.76% |
▷ Public methods | 36 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 14.29% |
Functions | 3 | |
▷ Named functions | 3 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.61MB with 0.37MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 513.87KB | 145.97KB | ▼ 71.59% |
screenshot-1.png | 106.42KB | 53.36KB | ▼ 49.85% |