94% addon-so-widgets-bundle

Code Review | Ultimate Addons for SiteOrigin

WordPress plugin Ultimate Addons for SiteOrigin scored 94% 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: 5.9.2
  • 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 / 173,623 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Ultimate Addons for SiteOrigin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1053.13 ▲2.09
Dashboard /wp-admin3.45 ▲0.0434.52 ▼0.15
Posts /wp-admin/edit.php3.67 ▲0.0437.28 ▼1.68
Add New Post /wp-admin/post-new.php6.91 ▼0.0695.18 ▼1,197.21
Media Library /wp-admin/upload.php3.33 ▲0.0325.03 ▼1.42

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 408 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate Addons for SiteOrigin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,796 ▲5215.66 ▼0.417.55 ▲1.552.33 ▲0.05
Dashboard /wp-admin2,881 ▲306.15 ▼0.03121.54 ▼19.28156.23 ▼4.94
Posts /wp-admin/edit.php2,685 ▼93.24 ▲0.0161.12 ▼2.31141.49 ▼3.38
Add New Post /wp-admin/post-new.php1,661 ▼016.10 ▼5.08422.27 ▲12.14156.09 ▼4.72
Media Library /wp-admin/upload.php1,698 ▼05.50 ▼0.02147.67 ▲9.02185.85 ▼3.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
  • 61× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/addon-so-widgets-bundle/cmb/includes/rest-api/CMB2_REST.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/addon-so-widgets-bundle/extra-widgets/toggles/toggles.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/addon-so-widgets-bundle/extra-widgets/tabs/tabs.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Select' not found in wp-content/plugins/addon-so-widgets-bundle/cmb/includes/types/CMB2_Type_Taxonomy_Select_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/addon-so-widgets-bundle/extra-widgets/faqs/faqs.php:10
    • > 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_Type_Text_Date' not found in wp-content/plugins/addon-so-widgets-bundle/cmb/includes/types/CMB2_Type_Text_Time.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: 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_File_Base' not found in wp-content/plugins/addon-so-widgets-bundle/cmb/includes/types/CMB2_Type_File_List.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)
No browser errors were detected

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: Please reduce the number of tags, currently 19 tag instead of maximum 10
You can take inspiration from this readme.txt

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

The principal PHP file in "Ultimate Addons for SiteOrigin" v. 2.4.2 is loaded by WordPress automatically on each request
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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous 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

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
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_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
cmb/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
cmb/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
cmb/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
cmb/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%