84% siteorigin-panels

Code Review | Page Builder by SiteOrigin

WordPress plugin Page Builder by SiteOrigin scored84%from 54 tests.

About plugin

  • Plugin page: siteorigin-panels
  • Plugin version: 2.28.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Apr 13, 2013
  • Latest release: Nov 12, 2023
  • Number of updates: 508
  • Update frequency: every 7.6 days
  • Top authors: gpriday (68.11%)SiteOrigin (32.09%)

Code review

54 tests

User reviews

1001 reviews

Install metrics

700,000+ active /47,885,088 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.32MB] [CPU: ▼3.90ms] 75% from 4 tests

This is a short check of server-side resources used by Page Builder by SiteOrigin
It is recommended to improve the following
  • CPU: Try to keep total CPU usage under 500.00ms (currently 4,569.44ms on /wp-admin/admin.php?page=siteorigin-installer)
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1744.86 ▲4.28
Dashboard /wp-admin3.99 ▲0.6960.86 ▲9.45
Posts /wp-admin/edit.php3.66 ▲0.3047.72 ▲0.71
Add New Post /wp-admin/post-new.php3.91 ▼1.9868.81 ▼26.15
Media Library /wp-admin/upload.php3.47 ▲0.2440.71 ▲5.56
Page Builder /wp-admin/options-general.php?page=siteorigin_panels3.5134.48
Installer /wp-admin/admin.php?page=siteorigin-installer4.014,569.44

Server storage [IO: ▲1.58MB] [DB: ▲0.11MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 170 new files
Database: no new tables, 11 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_siteorigin-panels-builder
siteorigin_panels_active_version
can_compress_scripts
widget_siteorigin-panels-postloop
db_upgraded
widget_siteorigin-panels-post-content
...

Browser metrics Passed 4 tests

Checking browser requirements for Page Builder by SiteOrigin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲15414.25 ▲0.091.77 ▲0.1144.52 ▲0.99
Dashboard /wp-admin2,306 ▲1325.67 ▲0.0099.00 ▼0.2547.05 ▲0.52
Posts /wp-admin/edit.php2,146 ▲462.05 ▲0.0336.25 ▼4.3733.65 ▼2.61
Add New Post /wp-admin/post-new.php3,520 ▲1,99110.74 ▼12.56260.46 ▼339.4284.51 ▲33.75
Media Library /wp-admin/upload.php1,418 ▲184.22 ▲0.03105.20 ▲7.6745.50 ▲0.77
Page Builder /wp-admin/options-general.php?page=siteorigin_panels2,2696.3881.8765.57
Installer /wp-admin/admin.php?page=siteorigin-installer1,3152.2228.4440.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_siteorigin-panels-postloop
    • siteorigin_panels_active_version
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_siteorigin-panels-post-content
    • siteorigin_panels_settings
    • ...

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
  • 42× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/siteorigin-panels/inc/data/widgets-bundle.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/siteorigin-panels/inc/widgets/post-loop-helper.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/siteorigin-panels/inc/installer/inc/admin.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/siteorigin-panels/compat/amp.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/siteorigin-panels/inc/widgets/post-loop.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/siteorigin-panels/widgets/widgets/animated-image/tpl/default.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/siteorigin-panels/settings/tpl/welcome.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/siteorigin-panels/inc/installer/tpl/action-btn.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Panels_Widget' not found in wp-content/plugins/siteorigin-panels/widgets/widgets/testimonial/testimonial.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/siteorigin-panels/widgets/widgets/list/tpl/simple.php:6

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 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

siteorigin-panels/siteorigin-panels.php Passed 13 tests

The main PHP script in "Page Builder by SiteOrigin" version 2.28.0 is automatically included on every request by WordPress
79 characters long description:
A drag and drop, responsive page builder that simplifies building your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin27,380 lines of code in 138 files:
LanguageFilesBlank linesComment linesLines of code
PHP713,0572,36913,854
JavaScript341,7571,7737,608
CSS15431054,749
XML100454
LESS67532346
JSON200246
SVG612180
Markdown325043

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity51.80
▷ Minimum class complexity1.00
▷ Maximum class complexity328.00
Average method complexity5.19
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes46
▷ Abstract classes12.17%
▷ Concrete classes4597.83%
▷ Final classes00.00%
Methods558
▷ Static methods11220.07%
▷ Public methods36665.59%
▷ Protected methods17130.65%
▷ Private methods213.76%
Functions39
▷ Named functions3897.44%
▷ Anonymous functions12.56%
Constants25
▷ Global constants832.00%
▷ Class constants1768.00%
▷ Public constants17100.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
21 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
widgets/img/checks/purple.png0.21KB0.37KB0.00%
widgets/img/checks/orange.png0.21KB0.37KB0.00%
css/images/dropdown-pointer.png0.14KB0.20KB0.00%
css/images/prebuilt-default.png0.11KB0.11KB0.00%
widgets/img/checks/pink.png0.21KB0.37KB0.00%