84% easy-widget-columns

Code Review | Easy Widget Columns

WordPress plugin Easy Widget Columns scored84%from 54 tests.

About plugin

  • Plugin page: easy-widget-columns
  • Plugin version: 1.2.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5
  • WordPress version: 6.3.1
  • First release: Mar 8, 2017
  • Latest release: Aug 1, 2020
  • Number of updates: 26
  • Update frequency: every 47.8 days
  • Top authors: ajvillegas (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

800+ active /13,525 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼10.35ms] Passed 4 tests

Analyzing server-side resources used by Easy Widget Columns
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.0426.09 ▼18.30
Dashboard /wp-admin3.35 ▲0.0049.20 ▼16.45
Posts /wp-admin/edit.php3.40 ▲0.0454.85 ▲6.08
Add New Post /wp-admin/post-new.php5.93 ▲0.0498.14 ▼12.73
Media Library /wp-admin/upload.php3.27 ▲0.0455.06 ▲16.61
Widget Columns /wp-admin/options-general.php?page=easy-widget-columns3.3033.24

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_ewc-row-divider
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
widget_ewc-subrow-divider
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Easy Widget Columns: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.23 ▼0.051.83 ▼0.1243.44 ▼1.95
Dashboard /wp-admin2,201 ▲275.63 ▲0.1192.19 ▲5.2441.83 ▼4.29
Posts /wp-admin/edit.php2,109 ▲62.00 ▼0.0340.72 ▼0.0335.28 ▼0.91
Add New Post /wp-admin/post-new.php1,531 ▲523.21 ▼0.40634.08 ▼35.2161.60 ▲6.62
Media Library /wp-admin/upload.php1,409 ▲94.21 ▲0.00103.46 ▲0.9444.67 ▼1.94
Widget Columns /wp-admin/options-general.php?page=easy-widget-columns8942.0023.8233.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-comments
    • widget_ewc-row-divider
    • widget_theysaidso_widget
    • widget_ewc-subrow-divider
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/easy-widget-columns/admin/partials/easy-widget-columns-admin-display.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-widget-columns/widgets/class-ewc-subrow-divider.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-widget-columns/widgets/class-ewc-row-divider.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/easy-widget-columns/admin/partials/easy-widget-columns-widget-form.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

easy-widget-columns/easy-widget-columns.php Passed 13 tests

"Easy Widget Columns" version 1.2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
42 characters long description:
Easily display widgets in rows of columns.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected6,377 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript61,1513174,389
PHP143168021,019
CSS413821755
PO File17278191
SVG10023

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity14.44
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity3.37
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods51
▷ Static methods00.00%
▷ Public methods4384.31%
▷ Protected methods00.00%
▷ Private methods815.69%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin