Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼427.66ms] Passed 4 tests
An overview of server-side resources used by CSS Crush for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.56 | 62.38 ▲13.27 |
Dashboard /wp-admin | 3.43 ▲0.02 | 32.56 ▼1.92 |
Posts /wp-admin/edit.php | 3.65 ▲0.02 | 36.04 ▼1.28 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 91.79 ▼1,708.45 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 25.33 ▲1.01 |
CSS Crush /wp-admin/options-general.php?page=css-crush | 3.25 | 21.63 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please fix the following
- There were 2 files (2.38KB) illegally modified outside of "wp-content/plugins/css-crush-for-wordpress/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentytwo/style.crush.css
- (new file) wp-content/themes/twentytwentytwo/.csscrush
Filesystem: 41 new files
Database: no new tables, 1 new option
New WordPress options |
---|
cpcc_options |
Browser metrics Passed 4 tests
Checking browser requirements for CSS Crush for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 15.86 ▲0.23 | 6.21 ▲0.35 | 2.77 ▲0.28 |
Dashboard /wp-admin | 2,897 ▲39 | 6.07 ▼0.12 | 115.23 ▼18.83 | 150.38 ▼12.77 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.23 ▲0.00 | 62.13 ▼5.36 | 138.73 ▼11.98 |
Add New Post /wp-admin/post-new.php | 1,755 ▲120 | 21.25 ▲2.73 | 428.31 ▲0.02 | 154.73 ▲6.47 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.54 ▲0.11 | 136.96 ▲2.43 | 184.01 ▼2.17 |
CSS Crush /wp-admin/options-general.php?page=css-crush | 1,120 | 2.41 | 53.46 | 122.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 1 option in the database
- cpcc_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=css-crush
- > User deprecated in wp-includes/functions.php+5326
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=css-crush
- > User deprecated in wp-includes/functions.php+5326
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 items
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/css-crush-for-wordpress/css-crush-for-wordpress.php:32
- > PHP Fatal error
Uncaught Error: Class 'csscrush_hook' not found in wp-content/plugins/css-crush-for-wordpress/crush/plugins/ie-inline-block.php:14
- > PHP Fatal error
Uncaught Error: Class 'csscrush_hook' not found in wp-content/plugins/css-crush-for-wordpress/crush/plugins/ie-opacity.php:15
- > PHP Fatal error
Uncaught Error: Class 'csscrush_hook' not found in wp-content/plugins/css-crush-for-wordpress/crush/plugins/ie-min-height.php:13
- > PHP Fatal error
Uncaught Error: Class 'csscrush_hook' not found in wp-content/plugins/css-crush-for-wordpress/crush/plugins/hsl-to-hex.php:13
- > PHP Fatal error
Uncaught Error: Class 'csscrush_hook' not found in wp-content/plugins/css-crush-for-wordpress/crush/plugins/hocus-pocus.php:16
- > PHP Fatal error
Uncaught Error: Class 'csscrush_hook' not found in wp-content/plugins/css-crush-for-wordpress/crush/plugins/spiffing.php:16
- > PHP Fatal error
Uncaught Error: Class 'csscrush_hook' not found in wp-content/plugins/css-crush-for-wordpress/crush/plugins/initial.php:18
- > PHP Fatal error
Uncaught Error: Class 'csscrush_hook' not found in wp-content/plugins/css-crush-for-wordpress/crush/plugins/rgba-fallback.php:15
- > PHP Fatal error
Uncaught Error: Class 'csscrush_hook' not found in wp-content/plugins/css-crush-for-wordpress/crush/plugins/ie-filter.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (Settings page)
css-crush-for-wordpress/css-crush-for-wordpress.php Passed 13 tests
The main PHP file in "CSS Crush for WordPress" ver. 0.3 adds more information about the plugin and also serves as the entry point for this plugin
124 characters long description:
Integrates an extensible CSS preprocessor for WordPress: upload, activate, and you're done. No further configuration needed.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin3,783 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 1,241 | 958 | 3,178 |
INI | 4 | 54 | 67 | 459 |
PO File | 2 | 18 | 20 | 81 |
JSON | 1 | 0 | 0 | 24 |
CSS | 2 | 14 | 12 | 22 |
Markdown | 1 | 16 | 0 | 19 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 131.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 152 | |
▷ Static methods | 101 | 66.45% |
▷ Public methods | 126 | 82.89% |
▷ Protected methods | 25 | 16.45% |
▷ Private methods | 1 | 0.66% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.18MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner-772x250.png | 151.63KB | 54.26KB | ▼ 64.21% |
screenshot-1.png | 34.17KB | 14.58KB | ▼ 57.34% |
assets/images/icon.png | 2.46KB | 1.87KB | ▼ 24.25% |