84% easy-custom-sidebars

Code Review | Easy Custom Sidebars

WordPress plugin Easy Custom Sidebars scored84%from 54 tests.

About plugin

  • Plugin page: easy-custom-sidebars
  • Plugin version: 2.0.1
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8
  • WordPress version: 6.3.1
  • First release: Sep 11, 2014
  • Latest release: Jul 23, 2021
  • Number of updates: 32
  • Update frequency: every 78.3 days
  • Top authors: sunny_johal (100%)

Code review

54 tests

User reviews

38 reviews

Install metrics

20,000+ active /293,799 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.27MB] [CPU: ▼0.71ms] Passed 4 tests

Analyzing server-side resources used by Easy Custom Sidebars
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2437.66 ▼0.43
Dashboard /wp-admin3.55 ▲0.2546.73 ▲0.94
Posts /wp-admin/edit.php3.67 ▲0.3150.73 ▲1.35
Add New Post /wp-admin/post-new.php6.22 ▲0.3384.58 ▼4.69
Media Library /wp-admin/upload.php3.49 ▲0.2637.28 ▲2.11
Sidebar Replacements /wp-admin/themes.php?page=easy-custom-sidebars3.6032.29

Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
ecs_show_admin_pointer
ecs_force_user_redirect
widget_recent-posts
widget_theysaidso_widget
ecs_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Custom Sidebars
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲14716.31 ▲1.941.76 ▼0.1236.18 ▼2.96
Dashboard /wp-admin2,296 ▲1076.96 ▲1.92231.17 ▲124.7940.87 ▲3.86
Posts /wp-admin/edit.php2,202 ▲1136.55 ▲4.5175.48 ▲40.5334.39 ▼1.59
Add New Post /wp-admin/post-new.php1,541 ▲2123.59 ▲0.50550.25 ▼98.5636.50 ▼14.97
Media Library /wp-admin/upload.php1,498 ▲1108.76 ▲4.46123.90 ▲26.6042.88 ▲1.47
Sidebar Replacements /wp-admin/themes.php?page=easy-custom-sidebars1,1878.86103.6038.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ECS\\Admin\\add_action() in wp-content/plugins/easy-custom-sidebars/src/includes/admin.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ECS\\Customizer\\add_action() in wp-content/plugins/easy-custom-sidebars/src/includes/customizer.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ECS\\Frontend\\add_filter() in wp-content/plugins/easy-custom-sidebars/src/includes/frontend.php:81
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ECS\\Deprecated\\add_filter() in wp-content/plugins/easy-custom-sidebars/src/includes/deprecated.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ECS\\Data\\add_action() in wp-content/plugins/easy-custom-sidebars/src/includes/data.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ECS\\Setup\\add_action() in wp-content/plugins/easy-custom-sidebars/src/includes/setup.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ECS\\Api\\add_action() in wp-content/plugins/easy-custom-sidebars/src/includes/api.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Add descriptions for screenshots #10, #8, #9 in easy-custom-sidebars/assets to your readme.txt
  • Tags: You are using too many tags: 14 tag instead of maximum 10
The official readme.txt is a good inspiration

easy-custom-sidebars/easy-custom-sidebars.php Passed 13 tests

The main file in "Easy Custom Sidebars" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
76 characters long description:
Replace any sidebar/widget area in any WordPress theme (no coding required).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected5,383 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS1337304,211
PHP122305561,152
SVG10018
JavaScript2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions78
▷ Named functions4760.26%
▷ Anonymous functions3139.74%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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.23MB with 0.16MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
src/images/main-pic.png230.83KB67.89KB▼ 70.59%