84% addon-so-widgets-bundle

Code Review | Ultimate Addons for SiteOrigin

WordPress plugin Ultimate Addons for SiteOrigin scored 84% from 54 tests.

About plugin

  • Plugin page: addon-so-widgets-...
  • Plugin version: 2.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.2
  • WordPress version: 6.3.1
  • First release: Apr 29, 2015
  • Latest release: Oct 21, 2019
  • Number of updates: 28
  • Update frequency: every 60.9 days
  • Top authors: munirkamal (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

10,000+ active / 178,861 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.01MB] [CPU: ▼4.21ms] Passed 4 tests

Analyzing server-side resources used by Ultimate Addons for SiteOrigin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.65 ▼8.01
Dashboard /wp-admin3.31 ▲0.0142.26 ▼3.38
Posts /wp-admin/edit.php3.36 ▲0.0147.42 ▼1.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.65 ▼4.32
Media Library /wp-admin/upload.php3.24 ▲0.0137.32 ▲3.74

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 408 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate Addons for SiteOrigin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲4013.25 ▼1.103.33 ▲1.5045.86 ▲5.22
Dashboard /wp-admin2,206 ▲215.85 ▼0.0597.19 ▼6.9745.86 ▲3.91
Posts /wp-admin/edit.php2,086 ▼32.04 ▼0.0137.26 ▼5.3332.28 ▼2.46
Add New Post /wp-admin/post-new.php1,514 ▼2217.71 ▼5.25682.36 ▲17.9252.03 ▼5.45
Media Library /wp-admin/upload.php1,388 ▼04.24 ▼0.00101.63 ▲2.6146.63 ▲0.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 61× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/addon-so-widgets-bundle/cmb/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/addon-so-widgets-bundle/cmb/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/addon-so-widgets-bundle/cmb/includes/types/CMB2_Type_Checkbox.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/addon-so-widgets-bundle/cmb/includes/types/CMB2_Type_Picker_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/addon-so-widgets-bundle/cmb/includes/CMB2.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addon-so-widgets-bundle/cmb-functions.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/addon-so-widgets-bundle/cmb/includes/types/CMB2_Type_File.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/addon-so-widgets-bundle/extra-widgets/spacer/spacer.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/addon-so-widgets-bundle/extra-widgets/faqs/tpl/faqs-template.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/addon-so-widgets-bundle/cmb/includes/types/CMB2_Type_Counter_Base.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: You are using too many tags: 19 tag instead of maximum 10
The official readme.txt is a good inspiration

addon-so-widgets-bundle/addon-so-widgets-bundle.php Passed 13 tests

The primary PHP file in "Ultimate Addons for SiteOrigin" version 2.4.2 is used by WordPress to initiate all plugin functionality
87 characters long description:
An ultimate collection of addons for SiteOrigin. SiteOrigin Widgets Bundle is required.

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 plugin54,578 lines of code in 262 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
PHP782,6856,3859,085
CSS142841,2324,673
JSON2004,264
JavaScript93615911,525
Sass17305251,408
Markdown22170652
LESS101054390
SVG10010258

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity16.59
▷ Minimum class complexity1.00
▷ Maximum class complexity185.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes78
▷ Abstract classes911.54%
▷ Concrete classes6988.46%
▷ Final classes00.00%
Methods571
▷ Static methods8615.06%
▷ Public methods47883.71%
▷ Protected methods9015.76%
▷ Private methods30.53%
Functions44
▷ Named functions44100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
cmb/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
cmb/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
cmb/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
cmb/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
cmb/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%