Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.76MB] [CPU: ▼49.51ms] Passed 4 tests
This is a short check of server-side resources used by CC-Minify
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.23 ▼1.23 | 10.97 ▼28.63 |
Dashboard /wp-admin | 2.25 ▼1.09 | 11.53 ▼52.61 |
Posts /wp-admin/edit.php | 2.25 ▼1.10 | 12.55 ▼26.45 |
Add New Post /wp-admin/post-new.php | 2.25 ▼3.63 | 11.41 ▼90.36 |
Media Library /wp-admin/upload.php | 2.25 ▼0.97 | 12.99 ▼23.58 |
Minify /wp-admin/options-general.php?page=minify | 2.25 | 12.61 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please try to fix the following items
- Illegal file modification detected: 3 files (232.34KB) outside of "wp-content/plugins/cc-minify/" and "wp-content/uploads/"
- (new file) wp-content/cache/styles/print.css
- (new file) wp-content/cache/styles/all.css
- (new file) wp-content/cache/scripts/footer.js
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for CC-Minify
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.35 ▼1.06 | 4.62 ▲2.92 | 41.89 ▼4.93 |
Dashboard /wp-admin | 2,225 ▲37 | 4.86 ▼0.03 | 100.39 ▼16.77 | 37.63 ▼7.50 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.04 ▲0.00 | 39.71 ▼0.36 | 36.17 ▲0.92 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 23.35 ▲5.08 | 673.86 ▲42.51 | 51.57 ▲3.75 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.20 ▼0.05 | 97.20 ▼3.87 | 42.27 ▼2.91 |
Minify /wp-admin/options-general.php?page=minify | 887 | 2.03 | 27.64 | 26.16 |
Uninstaller [IO: ▲0.23MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/cc-minify/includes/files.php+58
mkdir(): File exists
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=minify
- > Warning in wp-content/plugins/cc-minify/includes/files.php+58
mkdir(): File exists
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/cc-minify/vendor/matthiasmullie/minify/src/Exceptions/FileImportException.php:8
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/cc-minify/vendor/matthiasmullie/minify/src/Exceptions/BasicException.php:10
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/cc-minify/vendor/matthiasmullie/minify/src/CSS.php:18
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/cc-minify/vendor/matthiasmullie/minify/src/Exceptions/IOException.php:8
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/cc-minify/vendor/matthiasmullie/minify/src/JS.php:15
- > PHP Fatal error
Uncaught Error: Class 'Clearcode\\Minify\\Filterer' not found in wp-content/plugins/cc-minify/framework/plugin.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (**CC-Minify Settings** - Visit the 'Settings > Minify' page, select your preferred options and save them.)
- Tags: There are too many tags (29 tag instead of maximum 10)
cc-minify/plugin.php 85% from 13 tests
The entry point to "CC-Minify" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Please improve your description making it at least 10 characters long (currently 7 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cc-minify.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,871 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 541 | 1,207 | 1,688 |
JSON | 1 | 0 | 0 | 111 |
PO File | 1 | 29 | 38 | 65 |
CSS | 1 | 1 | 0 | 7 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 13.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 4 | 21.05% |
▷ Concrete classes | 15 | 78.95% |
▷ Final classes | 0 | 0.00% |
Methods | 150 | |
▷ Static methods | 45 | 30.00% |
▷ Public methods | 107 | 71.33% |
▷ Protected methods | 40 | 26.67% |
▷ Private methods | 3 | 2.00% |
Functions | 8 | |
▷ Named functions | 2 | 25.00% |
▷ Anonymous functions | 6 | 75.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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 PNG file occupies 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 109.99KB | 33.71KB | ▼ 69.35% |