Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.34MB] [CPU: ▼147.09ms] Passed 4 tests
An overview of server-side resources used by WordPress Easy Custom Js And Css Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.13 ▲0.41 | 43.43 ▲19.10 |
Dashboard /wp-admin | 3.44 ▲0.38 | 51.23 ▼1.53 |
Posts /wp-admin/edit.php | 3.49 ▲0.38 | 42.89 ▼2.96 |
Add New Post /wp-admin/post-new.php | 5.73 ▲0.30 | 93.21 ▼586.16 |
Media Library /wp-admin/upload.php | 3.32 ▲0.32 | 36.83 ▲2.30 |
All filters /wp-admin/admin.php?page=easy_custom_js_and_css_filters | 3.32 | 33.40 |
All Items /wp-admin/admin.php?page=easy_custom_js_and_css | 3.33 | 33.17 |
Settings /wp-admin/admin.php?page=easy_custom_js_and_css_settings | 3.29 | 33.09 |
Server storage [IO: ▲8.75MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 462 new files
Database: 2 new tables, no new options
New tables |
---|
wp_easy_custom_js_and_css |
wp_easy_custom_js_and_css_filters |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress Easy Custom Js And Css Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,718 ▲122 | 15.75 ▲0.15 | 8.25 ▼0.49 | 51.60 ▲0.68 |
Dashboard /wp-admin | 3,012 ▲81 | 5.89 ▼0.04 | 145.25 ▼13.18 | 113.94 ▼7.11 |
Posts /wp-admin/edit.php | 2,778 ▲39 | 2.70 ▲0.02 | 69.96 ▼3.46 | 99.65 ▲3.48 |
Add New Post /wp-admin/post-new.php | 1,708 ▲25 | 18.47 ▼0.28 | 377.72 ▼19.96 | 108.49 ▼9.80 |
Media Library /wp-admin/upload.php | 1,790 ▼17 | 5.00 ▼0.03 | 157.72 ▲1.23 | 126.46 ▼0.85 |
All filters /wp-admin/admin.php?page=easy_custom_js_and_css_filters | 1,622 | 2.53 | 63.29 | 90.42 |
All Items /wp-admin/admin.php?page=easy_custom_js_and_css | 1,686 | 3.06 | 81.00 | 84.32 |
Settings /wp-admin/admin.php?page=easy_custom_js_and_css_settings | 2,350 | 2.81 | 78.76 | 100.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/easy-custom-js-and-css/includes/lib/scssphp/src/Formatter/Compact.php:21
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/easy-custom-js-and-css/includes/lib/minify/src/JS.php:24
- > PHP Fatal error
Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/easy-custom-js-and-css/includes/lib/minify/src/Converter.php:19
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/easy-custom-js-and-css/includes/lib/minify/src/Exceptions/BasicException.php:21
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\ode' not found in wp-content/plugins/easy-custom-js-and-css/includes/lib/scssphp/src/Node/Number.php:29
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/easy-custom-js-and-css/includes/lib/minify/src/Exceptions/IOException.php:19
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/easy-custom-js-and-css/includes/lib/minify/src/CSS.php:29
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/easy-custom-js-and-css/includes/lib/scssphp/src/Formatter/Nested.php:22
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/easy-custom-js-and-css/includes/lib/scssphp/src/Formatter/Debug.php:22
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/easy-custom-js-and-css/includes/lib/minify/src/Exceptions/FileImportException.php:19
- > 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
- > GET request to /wp-admin/admin.php?page=easy_custom_js_and_css
- > Console-api (severe) in wp-content/plugins/easy-custom-js-and-css/assets/js/lib/ace/ace.js?ver=1.1.2+0:483
dropping module because define wasn't a string.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: custom css, development, less scss preprocessors, custom js, custom codes
easy-custom-js-and-css/easy-custom-js-and-css.php 85% from 13 tests
The entry point to "WordPress Easy Custom Js And Css Plugin" version 1.1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: The text domain should only use lowercase characters and dashes
- Description: The description should be shorter than 140 characters (currently 238 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin16,212 lines of code in 448 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 52 | 3,368 | 5,524 | 13,158 |
JavaScript | 392 | 381 | 1 | 2,686 |
PO File | 1 | 120 | 143 | 288 |
SVG | 1 | 0 | 0 | 78 |
CSS | 2 | 0 | 6 | 2 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 130)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 53.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 709.00 |
Average method complexity | 4.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 130.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 5 | 10.00% |
▷ Concrete classes | 45 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 761 | |
▷ Static methods | 20 | 2.63% |
▷ Public methods | 289 | 37.98% |
▷ Protected methods | 454 | 59.66% |
▷ Private methods | 18 | 2.37% |
Functions | 23 | |
▷ Named functions | 4 | 17.39% |
▷ Anonymous functions | 19 | 82.61% |
Constants | 138 | |
▷ Global constants | 6 | 4.35% |
▷ Class constants | 132 | 95.65% |
▷ Public constants | 132 | 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
No PNG images were found in this plugin