Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼0.38ms] Passed 4 tests
Analyzing server-side resources used by WP Compiler
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 46.25 ▲1.60 |
Dashboard /wp-admin | 3.48 ▲0.18 | 56.49 ▲3.08 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 52.73 ▲2.21 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 91.54 ▼4.62 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 37.54 ▼0.72 |
WP Compiler /wp-admin/options-general.php?page=wp-compiler | 3.38 | 35.13 |
Server storage [IO: ▲1.45MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 159 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
WP Compiler: 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,872 ▲126 | 13.39 ▼1.36 | 4.84 ▲2.86 | 45.55 ▲2.04 |
Dashboard /wp-admin | 2,238 ▲53 | 4.83 ▼0.96 | 101.52 ▼8.77 | 41.87 ▲0.27 |
Posts /wp-admin/edit.php | 2,118 ▲32 | 2.03 ▲0.00 | 36.30 ▼1.67 | 32.80 ▼3.12 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 23.12 ▼0.05 | 651.23 ▼46.09 | 58.53 ▲2.47 |
Media Library /wp-admin/upload.php | 1,411 ▲26 | 4.26 ▲0.02 | 97.61 ▼19.68 | 44.76 ▼2.57 |
WP Compiler /wp-admin/options-general.php?page=wp-compiler | 978 | 2.21 | 26.89 | 32.19 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 67× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/wp-compiler/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php:9
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/wp-compiler/vendor/leafo/scssphp/src/Formatter/Compact.php:21
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/wp-compiler/vendor/oyejorge/less.php/lib/Less/Tree/DetachedRuleset.php:9
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/wp-compiler/vendor/leafo/scssphp/src/Formatter/Debug.php:22
- > PHP Fatal error
Uncaught Error: Class 'Less_Configurable' not found in wp-content/plugins/wp-compiler/vendor/oyejorge/less.php/lib/Less/SourceMap/Generator.php:9
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/wp-compiler/vendor/matthiasmullie/minify/src/Exceptions/BasicException.php:21
- > PHP Fatal error
Uncaught Error: Class 'Less_Visitor' not found in wp-content/plugins/wp-compiler/vendor/oyejorge/less.php/lib/Less/Visitor/extendFinder.php:9
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/wp-compiler/vendor/oyejorge/less.php/lib/Less/Tree/Variable.php:9
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/wp-compiler/vendor/oyejorge/less.php/lib/Less/Tree/Call.php:10
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/wp-compiler/vendor/oyejorge/less.php/lib/Less/Tree/Javascript.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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 to be fixed:
- Tags: You are using too many tags: 18 tag instead of maximum 10
wp-compiler/wp-compiler.php Passed 13 tests
The main file in "WP Compiler" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
39 characters long description:
Compiles and minifies SCSS, LESS and JS
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected16,333 lines of code in 130 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 115 | 4,686 | 6,311 | 15,305 |
JSON | 6 | 0 | 0 | 386 |
Markdown | 5 | 143 | 0 | 350 |
JavaScript | 1 | 3 | 0 | 160 |
CSS | 1 | 2 | 0 | 90 |
YAML | 1 | 0 | 0 | 31 |
Dockerfile | 1 | 2 | 0 | 11 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 130)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 32.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 709.00 |
Average method complexity | 4.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 130.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 99 | |
▷ Abstract classes | 6 | 6.06% |
▷ Concrete classes | 93 | 93.94% |
▷ Final classes | 0 | 0.00% |
Methods | 1,030 | |
▷ Static methods | 54 | 5.24% |
▷ Public methods | 595 | 57.77% |
▷ Protected methods | 321 | 31.17% |
▷ Private methods | 114 | 11.07% |
Functions | 22 | |
▷ Named functions | 2 | 9.09% |
▷ Anonymous functions | 20 | 90.91% |
Constants | 67 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 67 | 100.00% |
▷ Public constants | 67 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.67MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 16.42KB | 7.59KB | ▼ 53.79% |
assets/icon-128x128.png | 9.76KB | 4.39KB | ▼ 54.99% |
assets/banner-772x250.png | 143.29KB | 68.60KB | ▼ 52.13% |
assets/screenshot-3.png | 58.83KB | 34.57KB | ▼ 41.23% |
assets/banner-1544x500.png | 449.83KB | 237.19KB | ▼ 47.27% |