78% expandable-row-for-beaver-builder

Code Review | Expandable Row for Beaver Builder

WordPress plugin Expandable Row for Beaver Builder scored78%from 54 tests.

About plugin

  • Plugin page: expandable-row-fo...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Dec 9, 2016
  • Latest release: Aug 17, 2023
  • Number of updates: 19
  • Update frequency: every 128.3 days
  • Top authors: brainstormworg (73.68%)Nikschavan (26.32%)patilvikasj (10.53%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /16,347 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Expandable Row for Beaver Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0144.10 ▲1.25
Dashboard /wp-admin3.58 ▼0.0553.62 ▼10.46
Posts /wp-admin/edit.php3.69 ▲0.0151.37 ▼7.70
Add New Post /wp-admin/post-new.php6.16 ▲0.0187.57 ▼32.36
Media Library /wp-admin/upload.php3.50 ▲0.0140.49 ▼0.83

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Expandable Row for Beaver Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.30 ▲0.002.69 ▲0.9043.80 ▲5.52
Dashboard /wp-admin2,205 ▲315.53 ▼0.0789.12 ▼3.4840.57 ▼4.20
Posts /wp-admin/edit.php2,110 ▲71.99 ▼0.0437.78 ▼3.8435.39 ▼2.66
Add New Post /wp-admin/post-new.php1,555 ▲723.09 ▼0.01679.87 ▲50.1154.27 ▼3.36
Media Library /wp-admin/upload.php1,410 ▲74.25 ▼0.12115.93 ▲16.9747.62 ▲5.04

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/expandable-row-for-beaver-builder/expandable-row/backend-row.php
  • 23× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: row in wp-content/plugins/expandable-row-for-beaver-builder/expandable-row/js/row-js.php on line 1
    • > PHP Notice
      Trying to get property 'er_icon_position' of non-object in wp-content/plugins/expandable-row-for-beaver-builder/expandable-row/backend-row.php on line 33
    • > PHP Notice
      Undefined variable: row in wp-content/plugins/expandable-row-for-beaver-builder/expandable-row/css/row-css.php on line 1
    • > PHP Notice
      Trying to get property 'settings' of non-object in wp-content/plugins/expandable-row-for-beaver-builder/expandable-row/backend-row.php on line 46
    • > PHP Notice
      Trying to get property 'settings' of non-object in wp-content/plugins/expandable-row-for-beaver-builder/expandable-row/css/row-css.php on line 1
    • > PHP Notice
      Trying to get property 'er_bc_title' of non-object in wp-content/plugins/expandable-row-for-beaver-builder/expandable-row/backend-row.php on line 30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/expandable-row-for-beaver-builder/expandable-row-for-beaver-builder.php:13
    • > PHP Notice
      Trying to get property 'is_enable' of non-object in wp-content/plugins/expandable-row-for-beaver-builder/expandable-row/css/row-css.php on line 1
    • > PHP Notice
      Trying to get property 'settings' of non-object in wp-content/plugins/expandable-row-for-beaver-builder/expandable-row/backend-row.php on line 30
    • > PHP Notice
      Trying to get property 'er_icon_position' of non-object in wp-content/plugins/expandable-row-for-beaver-builder/expandable-row/backend-row.php on line 4

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

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: row, expand, row expand, page builder plugin, beaver builder...

expandable-row-for-beaver-builder/expandable-row-for-beaver-builder.php 92% from 13 tests

This is the main PHP file of "Expandable Row for Beaver Builder" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • 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 considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,228 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP54749615
CSS238587
JavaScript13026

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.79
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin