83% zen-addons-for-siteorigin-page-builder

Code Review | Zen Addons for SiteOrigin Page Builder

WordPress plugin Zen Addons for SiteOrigin Page Builder scored83%from 54 tests.

About plugin

  • Plugin page: zen-addons-for-si...
  • Plugin version: 1.0.18
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Oct 1, 2017
  • Latest release: Aug 9, 2023
  • Number of updates: 39
  • Update frequency: every 54.8 days
  • Top authors: ksym04 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /14,238 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.18MB] [CPU: ▲858.76ms] 75% from 4 tests

An overview of server-side resources used by Zen Addons for SiteOrigin Page Builder
The following require your attention
  • Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 858.76ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2137.28 ▲0.90
Dashboard /wp-admin5.01 ▲1.661,134.79 ▲1,074.18
Posts /wp-admin/edit.php5.03 ▲1.671,140.81 ▲1,088.76
Add New Post /wp-admin/post-new.php7.09 ▲1.201,621.48 ▲1,526.91
Media Library /wp-admin/upload.php4.87 ▲1.631,307.23 ▲1,271.19

Server storage [IO: ▲1.07MB] [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: 107 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Zen Addons for SiteOrigin Page Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6714.23 ▼0.301.58 ▲0.1139.32 ▼1.34
Dashboard /wp-admin2,219 ▲455.64 ▼0.0792.88 ▲6.0543.28 ▲5.95
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0237.92 ▼6.6035.46 ▼2.68
Add New Post /wp-admin/post-new.php1,539 ▲1318.01 ▼5.58612.43 ▼74.9267.53 ▲18.31
Media Library /wp-admin/upload.php1,406 ▲64.18 ▼0.0497.56 ▼8.8243.72 ▼1.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 40× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/zen-addons-for-siteorigin-page-builder/core/basic/zaso-vimeo-lightbox-widgets/tpl/default.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/zen-addons-for-siteorigin-page-builder/core/basic/zaso-contact-form-7-widgets/zaso-contact-form-7-widgets.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/zen-addons-for-siteorigin-page-builder/core/basic/zaso-bbpress-topic-index-widgets/zaso-bbpress-topic-index-widgets.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/zen-addons-for-siteorigin-page-builder/core/basic/zaso-icon-widgets/zaso-icon-widgets.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function zaso_format_field_extra_id() in wp-content/plugins/zen-addons-for-siteorigin-page-builder/core/basic/zaso-bbpress-registration-widgets/tpl/default.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/zen-addons-for-siteorigin-page-builder/core/basic/zaso-spacer-widgets/zaso-spacer-widgets.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/zen-addons-for-siteorigin-page-builder/core/basic/zaso-youtube-lightbox-widgets/tpl/default.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function zaso_format_field_extra_id() in wp-content/plugins/zen-addons-for-siteorigin-page-builder/core/basic/zaso-alert-box-widgets/tpl/default.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/zen-addons-for-siteorigin-page-builder/core/basic/zaso-bbpress-registration-widgets/zaso-bbpress-registration-widgets.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/zen-addons-for-siteorigin-page-builder/core/basic/zaso-simple-accordion-widgets/zaso-simple-accordion-widgets.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
5 plugin tags: widgets, addons, zaso, siteorigin, page builder

zen-addons-for-siteorigin-page-builder/zen-addons-siteorigin.php 85% from 13 tests

The main PHP script in "Zen Addons for SiteOrigin Page Builder" version 1.0.18 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("zen-addons-for-siteorigin-page-builder.php" instead of "zen-addons-siteorigin.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected6,052 lines of code in 94 files:
LanguageFilesBlank linesComment linesLines of code
PHP434255592,929
PO File26,26317,3721,589
JavaScript714725561
LESS14803485
CSS6611306
Sass3190114
Markdown120050
SVG180018

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity2.10
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods61
▷ Static methods00.00%
▷ Public methods61100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin