79% saoshyant-page-builder

Code Review | Saoshyant Page Builder

WordPress plugin Saoshyant Page Builder scored 79% from 54 tests.

About plugin

  • Plugin page: saoshyant-page-bu...
  • Plugin version: 3.8
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-1.7
  • WordPress version: 6.3.1
  • First release: Mar 18, 2020
  • Latest release: Sep 23, 2023
  • Number of updates: 357
  • Update frequency: every 3.9 days
  • Top authors: saoshyant1994 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 3,987 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.23MB] [CPU: ▲61.23ms] Passed 4 tests

Server-side resources used by Saoshyant Page Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.21 ▼6.17
Dashboard /wp-admin3.59 ▲0.29127.15 ▲78.58
Posts /wp-admin/edit.php3.64 ▲0.28140.94 ▲91.57
Add New Post /wp-admin/post-new.php6.30 ▲0.412,177.43 ▲2,086.43
Media Library /wp-admin/upload.php3.54 ▲0.31114.42 ▲80.94

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 262 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Saoshyant Page Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲19215.49 ▲1.117.57 ▲5.5637.39 ▼5.25
Dashboard /wp-admin2,220 ▲356.54 ▲1.63122.86 ▲21.0141.88 ▼3.45
Posts /wp-admin/edit.php2,233 ▲1443.33 ▲1.3051.93 ▲16.9035.82 ▲1.17
Add New Post /wp-admin/post-new.php6,806 ▲5,28720.61 ▼2.65851.13 ▲161.9139.74 ▼26.64
Media Library /wp-admin/upload.php1,553 ▲1624.94 ▲0.73110.50 ▲8.3841.78 ▼4.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/saoshyant-page-builder/inc/minify.php
  • 87× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant SAOPAGE_FILE - assumed 'SAOPAGE_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/saoshyant-page-builder/inc/minify.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/saoshyant-page-builder/element/multi_icon_text.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/saoshyant-page-builder/framework/builder-section.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/saoshyant-page-builder/framework/builder-template.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/saoshyant-page-builder/element/progress_bar.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/saoshyant-page-builder/element/button.php:2
    • > PHP Warning
      include(SAOPAGE_PATHelement/mini/button_typography.php): failed to open stream: No such file or directory in wp-content/plugins/saoshyant-page-builder/element/mini/details_type.php on line 7
    • > PHP Warning
      include(): Failed opening 'SAOPAGE_PATHelement/mini/details_typography.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/saoshyant-page-builder/element/mini/details_type.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/saoshyant-page-builder/element/divider_vertical.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/saoshyant-page-builder/inc/post-functions.php:778

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: page builder, creator page

saoshyant-page-builder/saoshyant-page-builder.php Passed 13 tests

The entry point to "Saoshyant Page Builder" version 3.8 is a PHP file that has certain tags in its header comment area
40 characters long description:
Drag and drop page builder for WordPress

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
Success! There were no dangerous files found in this plugin37,594 lines of code in 162 files:
LanguageFilesBlank linesComment linesLines of code
PHP755,7811,27321,566
CSS561,0661578,297
JavaScript291,4897006,259
PO File17051,7761,460
SVG10112

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions319
▷ Named functions319100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/image/controls.png2.19KB0.95KB▼ 56.49%