Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼6.13ms] Passed 4 tests
Server-side resources used by Easy Custom Code (LESS/CSS/JS) - Live editing
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 40.37 ▼2.58 |
Dashboard /wp-admin | 3.52 ▲0.22 | 48.37 ▼0.40 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 47.87 ▼0.69 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 83.03 ▼20.86 |
Media Library /wp-admin/upload.php | 3.44 ▲0.22 | 37.33 ▲0.13 |
Open Customizer /wp-admin/customize.php?autofocus[section]=web357_customizer_section | 7.83 | 165.84 |
Settings /wp-admin/options-general.php?page=easy-custom-code | 3.44 | 32.96 |
Server storage [IO: ▲0.77MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 108 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Custom Code (LESS/CSS/JS) - Live editing
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.23 ▼0.06 | 1.72 ▲0.11 | 41.05 ▼1.00 |
Dashboard /wp-admin | 2,228 ▲48 | 5.55 ▼0.09 | 85.45 ▼0.67 | 37.19 ▼2.27 |
Posts /wp-admin/edit.php | 2,136 ▲33 | 2.02 ▲0.03 | 35.91 ▲0.49 | 34.44 ▲2.29 |
Add New Post /wp-admin/post-new.php | 1,556 ▲27 | 23.24 ▲0.19 | 666.31 ▲12.60 | 60.30 ▲12.02 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.19 ▲0.00 | 95.22 ▼7.96 | 42.48 ▲0.07 |
Open Customizer /wp-admin/customize.php?autofocus[section]=web357_customizer_section | 7,377 | 23.27 | 687.84 | 175.24 |
Settings /wp-admin/options-general.php?page=easy-custom-code | 1,075 | 1.69 | 23.06 | 33.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/customize.php?autofocus[section]=web357_customizer_section
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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 take a closer look at the following
- 20× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_Theme_UpdateChecker' not found in wp-content/plugins/easy-custom-code/includes/plugin-update-checker/Puc/v4p6/Vcs/ThemeUpdateChecker.php:5
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_Update' not found in wp-content/plugins/easy-custom-code/includes/plugin-update-checker/Puc/v4p6/Plugin/Update.php:11
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_Update' not found in wp-content/plugins/easy-custom-code/includes/plugin-update-checker/Puc/v4p6/Theme/Update.php:5
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_InstalledPackage' not found in wp-content/plugins/easy-custom-code/includes/plugin-update-checker/Puc/v4p6/Theme/Package.php:4
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_DebugBar_Extension' not found in wp-content/plugins/easy-custom-code/includes/plugin-update-checker/Puc/v4p6/DebugBar/PluginExtension.php:4
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_Vcs_Api' not found in wp-content/plugins/easy-custom-code/includes/plugin-update-checker/Puc/v4p6/Vcs/GitLabApi.php:5
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_Metadata' not found in wp-content/plugins/easy-custom-code/includes/plugin-update-checker/Puc/v4p6/Plugin/Info.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/easy-custom-code/uninstall.php:26
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_DebugBar_Panel' not found in wp-content/plugins/easy-custom-code/includes/plugin-update-checker/Puc/v4p6/DebugBar/ThemePanel.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-custom-code/includes/class-w357-easy-custom-code.php:21
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/customize.php?autofocus[section]=web357_customizer_section
- > Security (warning) in unknown
/?customize_changeset_uuid=5520477a-7958-4a7d-9b55-61203bbe81b4&customize_theme=twentytwentyone&customize_messenger_channel=preview-0 - An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: custom css, css, custom js, add style, c...
easy-custom-code/easy-custom-code.php Passed 13 tests
The entry point to "Easy Custom Code (LESS/CSS/JS) - Live editing" version 1.0.7 is a PHP file that has certain tags in its header comment area
132 characters long description:
Easily add custom LESS/CSS/JAVASCRIPT code and external resources (stylesheets and scripts) into your website via the WP customizer.
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
There were no executable files found in this plugin10,576 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 53 | 2,386 | 3,623 | 9,532 |
PO File | 14 | 135 | 167 | 571 |
Markdown | 1 | 72 | 0 | 217 |
CSS | 3 | 35 | 13 | 134 |
JSON | 3 | 8 | 0 | 71 |
JavaScript | 5 | 8 | 18 | 51 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 30.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 379.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 5 | 9.43% |
▷ Concrete classes | 48 | 90.57% |
▷ Final classes | 0 | 0.00% |
Methods | 623 | |
▷ Static methods | 30 | 4.82% |
▷ Public methods | 311 | 49.92% |
▷ Protected methods | 294 | 47.19% |
▷ Private methods | 18 | 2.89% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.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
4 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/tick.png | 0.52KB | 0.58KB | 0.00% |
admin/img/web357-logo.png | 7.12KB | 2.83KB | ▼ 60.18% |
admin/img/x.png | 0.58KB | 0.65KB | 0.00% |
admin/img/easy-custom-code-wordpress-plugin-120x200.png | 49.22KB | 10.33KB | ▼ 79.00% |