Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.36ms] Passed 4 tests
Analyzing server-side resources used by WP CSS Generator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 37.83 ▼4.71 |
Dashboard /wp-admin | 3.41 ▲0.11 | 47.13 ▼1.89 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 49.09 ▲5.74 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 84.98 ▼6.02 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.73 ▲3.20 |
Tools /wp-admin/admin.php?page=wpcssgenerator-tools | 3.31 | 36.64 |
CSS Groups /wp-admin/admin.php?page=wpcssgenerator | 3.35 | 167.67 |
Add New /wp-admin/admin.php?page=wpcssgenerator-new | 3.30 | 32.52 |
Server storage [IO: ▲1.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
wpcss-group_children |
widget_recent-comments |
db_upgraded |
wp_css_generator_first_activation |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP CSS Generator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲134 | 13.57 ▼0.73 | 1.67 ▼0.14 | 39.25 ▼3.50 |
Dashboard /wp-admin | 2,259 ▲71 | 4.97 ▲0.09 | 112.37 ▲2.05 | 82.05 ▲41.54 |
Posts /wp-admin/edit.php | 2,148 ▲59 | 2.04 ▼0.00 | 39.13 ▲5.11 | 35.41 ▲4.11 |
Add New Post /wp-admin/post-new.php | 1,571 ▲29 | 22.88 ▲4.45 | 759.45 ▲155.87 | 52.29 ▲1.62 |
Media Library /wp-admin/upload.php | 1,438 ▲50 | 4.18 ▼0.13 | 102.51 ▲5.37 | 44.93 ▲1.81 |
Tools /wp-admin/admin.php?page=wpcssgenerator-tools | 923 | 1.71 | 25.13 | 23.73 |
CSS Groups /wp-admin/admin.php?page=wpcssgenerator | 1,027 | 1.87 | 24.86 | 37.23 |
Add New /wp-admin/admin.php?page=wpcssgenerator-new | 1,285 | 1.75 | 29.91 | 32.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- db_upgraded
- wpcss-group_children
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- wp_css_generator_first_activation
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WPCSSGenerator\\Part' not found in wp-content/plugins/wp-css-generator/parts/CSS/CSS.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function WPCSSGenerator\\plugin_dir_path() in wp-content/plugins/wp-css-generator/wp-css-generator.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function WPCSSGenerator\\is_admin() in wp-content/plugins/wp-css-generator/framework/helpers/class-options.php:1194
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpcssgenerator-new
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-css-generator/js/admin_init.js?ver=6.3.1:9:29)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpcssgenerator-new
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: css, styles, custom css, custom
wp-css-generator/wp-css-generator.php Passed 13 tests
"WP CSS Generator" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
92 characters long description:
Customize you WP page elements easy and fast. Get full control over any element or property.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin7,934 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
CSS | 3 | 58 | 59 | 2,542 |
PHP | 12 | 928 | 722 | 2,009 |
JavaScript | 2 | 100 | 118 | 599 |
PO File | 1 | 46 | 82 | 113 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 25.10 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 20 | 27.78% |
▷ Public methods | 64 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 11.11% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon.png | 1.68KB | 1.03KB | ▼ 39.13% |