73% easy-custom-code

Code Review | Easy Custom Code (LESS/CSS/JS) - Live editing

WordPress plugin Easy Custom Code (LESS/CSS/JS) - Live editing scored73%from 54 tests.

About plugin

  • Plugin page: easy-custom-code
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Oct 11, 2019
  • Latest release: Oct 23, 2023
  • Number of updates: 31
  • Update frequency: every 47.5 days
  • Top authors: Yiannistaos (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,502 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2340.37 ▼2.58
Dashboard /wp-admin3.52 ▲0.2248.37 ▼0.40
Posts /wp-admin/edit.php3.63 ▲0.2847.87 ▼0.69
Add New Post /wp-admin/post-new.php6.12 ▲0.2483.03 ▼20.86
Media Library /wp-admin/upload.php3.44 ▲0.2237.33 ▲0.13
Open Customizer /wp-admin/customize.php?autofocus[section]=web357_customizer_section7.83165.84
Settings /wp-admin/options-general.php?page=easy-custom-code3.4432.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.23 ▼0.061.72 ▲0.1141.05 ▼1.00
Dashboard /wp-admin2,228 ▲485.55 ▼0.0985.45 ▼0.6737.19 ▼2.27
Posts /wp-admin/edit.php2,136 ▲332.02 ▲0.0335.91 ▲0.4934.44 ▲2.29
Add New Post /wp-admin/post-new.php1,556 ▲2723.24 ▲0.19666.31 ▲12.6060.30 ▲12.02
Media Library /wp-admin/upload.php1,436 ▲364.19 ▲0.0095.22 ▼7.9642.48 ▲0.07
Open Customizer /wp-admin/customize.php?autofocus[section]=web357_customizer_section7,37723.27687.84175.24
Settings /wp-admin/options-general.php?page=easy-custom-code1,0751.6923.0633.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP532,3863,6239,532
PO File14135167571
Markdown1720217
CSS33513134
JSON38071
JavaScript581851

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 code0.43
Average class complexity30.44
▷ Minimum class complexity1.00
▷ Maximum class complexity379.00
Average method complexity3.64
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes53
▷ Abstract classes59.43%
▷ Concrete classes4890.57%
▷ Final classes00.00%
Methods623
▷ Static methods304.82%
▷ Public methods31149.92%
▷ Protected methods29447.19%
▷ Private methods182.89%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.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
FileSize - originalSize - compressedSavings
admin/img/tick.png0.52KB0.58KB0.00%
admin/img/web357-logo.png7.12KB2.83KB▼ 60.18%
admin/img/x.png0.58KB0.65KB0.00%
admin/img/easy-custom-code-wordpress-plugin-120x200.png49.22KB10.33KB▼ 79.00%