83% design-sidebar-using-page-builder

Code Review | Reusable Blocks - Elementor, Beaver Builder, WYSIWYG, Gutenberg

WordPress plugin Reusable Blocks - Elementor, Beaver Builder, WYSIWYG, Gutenberg scored83%from 54 tests.

About plugin

  • Plugin page: design-sidebar-us...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.4
  • WordPress version: 6.3.1
  • First release: Apr 29, 2019
  • Latest release: Apr 26, 2020
  • Number of updates: 10
  • Update frequency: every 36.3 days
  • Top authors: webempire (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,156 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.10MB] [CPU: ▲15.03ms] Passed 4 tests

Server-side resources used by Reusable Blocks - Elementor, Beaver Builder, WYSIWYG, Gutenberg
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1036.75 ▼4.07
Dashboard /wp-admin3.39 ▲0.0895.94 ▲41.78
Posts /wp-admin/edit.php3.50 ▲0.1563.73 ▲14.80
Add New Post /wp-admin/post-new.php6.03 ▲0.14141.55 ▲47.46
Media Library /wp-admin/upload.php3.31 ▲0.0839.38 ▲7.59
Reusable Templates /wp-admin/edit.php?post_type=we-sidebar-builder3.3541.37

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_sidebar-template-library
elementor_cpt_support
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Reusable Blocks - Elementor, Beaver Builder, WYSIWYG, Gutenberg
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.15 ▼0.431.91 ▲0.1942.05 ▼0.49
Dashboard /wp-admin2,198 ▲215.57 ▼0.05149.04 ▲56.4185.94 ▲40.32
Posts /wp-admin/edit.php2,113 ▲102.06 ▲0.0550.26 ▲7.1647.52 ▲8.05
Add New Post /wp-admin/post-new.php1,555 ▲2921.22 ▲3.47806.59 ▲151.6261.72 ▲10.73
Media Library /wp-admin/upload.php1,406 ▲64.23 ▼0.01121.82 ▲20.8550.47 ▲6.83
Reusable Templates /wp-admin/edit.php?post_type=we-sidebar-builder1,0901.9537.5333.58

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_sidebar-template-library
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • elementor_cpt_support

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/design-sidebar-using-page-builder/classes/class-template-library-widget.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/design-sidebar-using-page-builder/sidebar-using-page-builder.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 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
8 plugin tags: template builder, elementor templates, beaver builder templates, sidebar using page builder, gutenberg templates...

design-sidebar-using-page-builder/sidebar-using-page-builder.php 77% from 13 tests

This is the main PHP file of "Reusable Blocks - Elementor, Beaver Builder, WYSIWYG, Gutenberg" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("design-sidebar-using-page-builder.php" instead of "sidebar-using-page-builder.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 289 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin291 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5102212285
CSS1106

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.39
Average class complexity7.50
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods20
▷ Static methods210.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin