78% dadevarzan-beaver-builder-modules

Code Review | Dadevarzan Beaver Builder Modules

WordPress plugin Dadevarzan Beaver Builder Modules scored78%from 54 tests.

About plugin

  • Plugin page: dadevarzan-beaver...
  • Plugin version: 1.5.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Jan 15, 2019
  • Latest release: Sep 20, 2022
  • Number of updates: 25
  • Update frequency: every 53.8 days
  • Top authors: dadevarzan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /7,314 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.63ms] Passed 4 tests

Analyzing server-side resources used by Dadevarzan Beaver Builder Modules
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.98 ▼1.03
Dashboard /wp-admin3.31 ▲0.0152.21 ▲2.84
Posts /wp-admin/edit.php3.36 ▲0.0048.86 ▼0.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.41 ▼32.04
Media Library /wp-admin/upload.php3.23 ▲0.0035.88 ▼0.61

Server storage [IO: ▲29.46MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
It is recommended to fix the following issues
  • The filesystem usage should be lower than 25MB (currently using 29.46MB)
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Dadevarzan Beaver Builder Modules: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.74 ▲0.471.68 ▼0.0743.20 ▲2.59
Dashboard /wp-admin2,195 ▲185.62 ▼0.0089.83 ▼0.7441.89 ▼3.14
Posts /wp-admin/edit.php2,100 ▲32.00 ▲0.0037.08 ▼0.1334.19 ▼4.73
Add New Post /wp-admin/post-new.php1,526 ▼023.32 ▲0.23688.61 ▲36.2956.40 ▲5.14
Media Library /wp-admin/upload.php1,403 ▲34.30 ▲0.0395.77 ▼13.1343.58 ▲1.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/dadevarzan-beaver-builder-modules/modules/scroll-add-class/includes/frontend.js.php
    • > /wp-content/plugins/dadevarzan-beaver-builder-modules/modules/scroll-add-class/includes/frontend.php
    • > /wp-content/plugins/dadevarzan-beaver-builder-modules/modules/date-and-time/includes/frontend.php
    • > /wp-content/plugins/dadevarzan-beaver-builder-modules/modules/iran-map/includes/frontend.php
  • 35× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/dadevarzan-beaver-builder-modules/modules/date-and-time/date-and-time.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/dadevarzan-beaver-builder-modules/modules/powered-by/powered-by.php:7
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/dadevarzan-beaver-builder-modules/modules/iran-map/includes/frontend.css.php on line 16
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/dadevarzan-beaver-builder-modules/modules/date-and-time/includes/frontend.php on line 22
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/dadevarzan-beaver-builder-modules/modules/scroll-add-class/scroll-add-class.php:7
    • > PHP Notice
      Trying to get property 'border_color' of non-object in wp-content/plugins/dadevarzan-beaver-builder-modules/modules/iran-map/includes/frontend.css.php on line 2
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/dadevarzan-beaver-builder-modules/modules/date-and-time/includes/frontend.php on line 3
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/dadevarzan-beaver-builder-modules/modules/iran-map/includes/frontend.css.php on line 13
    • > PHP Notice
      Trying to get property 'province_color' of non-object in wp-content/plugins/dadevarzan-beaver-builder-modules/modules/iran-map/includes/frontend.css.php on line 8
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/dadevarzan-beaver-builder-modules/modules/iran-map/includes/frontend.css.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: beaver builder, beaver builder modules, dadehvarzan, beaver builder addons, beaver builder extensions...

dadevarzan-beaver-builder-modules/fl-dadevarzan-beaverbuilder-modules.php 85% from 13 tests

Analyzing the main PHP file in "Dadevarzan Beaver Builder Modules" version 1.5.0
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dadevarzan-beaver-builder-modules.php" instead of "fl-dadevarzan-beaverbuilder-modules.php")

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
Good job! No executable or dangerous file extensions detected1,551 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP1582113959
PO File2222238483
CSS20050
JavaScript310050
Markdown1309

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity2.67
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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