78% echelon-so

Code Review | Echelon Widgets for SiteOrigin

WordPress plugin Echelon Widgets for SiteOrigin scored78%from 54 tests.

About plugin

  • Plugin page: echelon-so
  • Plugin version: 2.0.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.6
  • WordPress version: 6.3.1
  • First release: Sep 20, 2018
  • Latest release: Feb 4, 2021
  • Number of updates: 55
  • Update frequency: every 15.9 days
  • Top authors: echelonso (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /13,758 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
Installer ran successfully

Server metrics [RAM: ▲0.78MB] [CPU: ▼3.19ms] Passed 4 tests

A check of server-side resources used by Echelon Widgets for SiteOrigin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.26 ▲0.8041.30 ▼0.37
Dashboard /wp-admin4.09 ▲0.7553.03 ▼12.67
Posts /wp-admin/edit.php4.14 ▲0.7953.52 ▲0.86
Add New Post /wp-admin/post-new.php6.69 ▲0.8193.89 ▼0.59
Media Library /wp-admin/upload.php4.02 ▲0.7943.66 ▲7.55
Categories /wp-admin/edit-tags.php?taxonomy=echelonso_layout_cat&post_type=echelonso_layout4.0143.76
Add New /wp-admin/post-new.php?post_type=echelonso_layout4.1461.88
Echelon Layouts /wp-admin/edit.php?post_type=echelonso_layout4.0644.72
Tags /wp-admin/edit-tags.php?taxonomy=echelonso_layout_tag&post_type=echelonso_layout4.0138.67

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 135 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Echelon Widgets for SiteOrigin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,240 ▲49414.67 ▲0.3818.57 ▲16.4940.65 ▼8.15
Dashboard /wp-admin2,265 ▲805.01 ▼0.81110.99 ▲6.9538.49 ▼5.52
Posts /wp-admin/edit.php2,156 ▲672.34 ▲0.3442.01 ▲4.9334.66 ▲0.88
Add New Post /wp-admin/post-new.php1,565 ▲3321.09 ▼2.14680.63 ▲63.8731.58 ▼23.20
Media Library /wp-admin/upload.php1,453 ▲624.38 ▲0.17113.11 ▲12.3548.38 ▲1.04
Categories /wp-admin/edit-tags.php?taxonomy=echelonso_layout_cat&post_type=echelonso_layout1,3352.0736.8930.05
Add New /wp-admin/post-new.php?post_type=echelonso_layout2,3767.99182.6161.56
Echelon Layouts /wp-admin/edit.php?post_type=echelonso_layout1,1362.2637.3928.07
Tags /wp-admin/edit-tags.php?taxonomy=echelonso_layout_tag&post_type=echelonso_layout1,3042.0832.0228.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/echelon-so/widgets/eso-video/tpl/default.php
  • 87× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/echelon-so/widgets-woo/eso-product-box/eso-product-box.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/echelon-so/widgets/eso-divider/eso-divider.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/echelon-so/widgets/eso-comment/eso-comment.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/echelon-so/widgets/eso-modal/tpl/default.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/echelon-so/widgets/eso-off-canvas/tpl/default.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/echelon-so/widgets/eso-smooth-scroll/eso-smooth-scroll.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/echelon-so/widgets/eso-card/tpl/sub_title.php:1
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/echelon-so/widgets/eso-filter/tpl/default.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/echelon-so/widgets/eso-lightbox-gallery/tpl/default.php:1
    • > PHP Notice
      Undefined variable: trigger_distance in wp-content/plugins/echelon-so/widgets/eso-radial/tpl/icon.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
There were not plugin tags detected

echelon-so/echelon-so.php Passed 13 tests

The main PHP script in "Echelon Widgets for SiteOrigin" version 2.0.8 is automatically included on every request by WordPress
72 characters long description:
UIkit powered widgets, features and presets for SiteOrigin Page Builder.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin18,305 lines of code in 132 files:
LanguageFilesBlank linesComment linesLines of code
PHP1022,4911,2889,389
CSS21497,947
LESS25620790
JavaScript36663179

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
The following items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 122)
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity23.19
▷ Minimum class complexity1.00
▷ Maximum class complexity157.00
Average method complexity4.42
▷ Minimum method complexity1.00
▷ Maximum method complexity122.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes54
▷ Abstract classes00.00%
▷ Concrete classes54100.00%
▷ Final classes2037.04%
Methods350
▷ Static methods17249.14%
▷ Public methods34498.29%
▷ Protected methods41.14%
▷ Private methods20.57%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/widget-icon.png0.73KB0.35KB▼ 52.47%
custom-fields/alpha-color-picker/transparency-grid.png2.58KB2.80KB0.00%