78% wpcl-beaver-extender

Code Review | WPCL Beaver Extender

WordPress plugin WPCL Beaver Extender scored 78% from 54 tests.

About plugin

  • Plugin page: wpcl-beaver-extender
  • Plugin version: 1.1.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.3
  • WordPress version: 6.3.1
  • First release: Nov 13, 2018
  • Latest release: Dec 5, 2019
  • Number of updates: 17
  • Update frequency: every 22.8 days
  • Top authors: gaiusinvictus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 1,161 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by WPCL Beaver Extender
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.10 ▼7.90
Dashboard /wp-admin3.31 ▲0.0148.19 ▲1.35
Posts /wp-admin/edit.php3.36 ▲0.0149.16 ▼2.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.22 ▼10.11
Media Library /wp-admin/upload.php3.23 ▲0.0039.67 ▲2.20

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 564 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
_beaver_extender_active
_fl_builder_post_types
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WPCL Beaver Extender
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.36 ▼1.111.85 ▲0.0840.07 ▼4.09
Dashboard /wp-admin2,207 ▲165.82 ▲0.8995.70 ▼18.6737.58 ▼3.52
Posts /wp-admin/edit.php2,092 ▼02.04 ▼0.0040.31 ▼0.5535.42 ▼1.48
Add New Post /wp-admin/post-new.php1,518 ▲417.68 ▼0.02661.43 ▼17.4254.46 ▼0.73
Media Library /wp-admin/upload.php1,389 ▼24.29 ▲0.0696.16 ▼1.9245.36 ▲3.21

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 11× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/wpcl-beaver-extender/wpcl-beaver-extender.php
    • > /wp-content/plugins/wpcl-beaver-extender/includes/fields/ui-field-scss.php
    • > /wp-content/plugins/wpcl-beaver-extender/includes/images/seperators/center-up.php
    • > /wp-content/plugins/wpcl-beaver-extender/includes/images/seperators/angle-right-down.php
    • > /wp-content/plugins/wpcl-beaver-extender/includes/images/seperators/arrow-down.php
    • > /wp-content/plugins/wpcl-beaver-extender/includes/images/seperators/angle-right-up.php
    • > /wp-content/plugins/wpcl-beaver-extender/includes/images/seperators/center-down.php
    • > /wp-content/plugins/wpcl-beaver-extender/includes/images/seperators/arrow-up.php
    • > /wp-content/plugins/wpcl-beaver-extender/includes/images/seperators/angle-left-down.php
    • > /wp-content/plugins/wpcl-beaver-extender/includes/images/seperators/angle-left-up.php
  • 124× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to get property 'height' of non-object in wp-content/plugins/wpcl-beaver-extender/includes/images/seperators/center-up.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/wpcl-beaver-extender/includes/modules/becodeblock.php:9
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/wpcl-beaver-extender/js/templates/bemap.js.php on line 34
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/wpcl-beaver-extender/js/templates/bemap.js.php on line 83
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/wpcl-beaver-extender/includes/modules/bebutton.php:9
    • > PHP Notice
      Trying to get property 'height' of non-object in wp-content/plugins/wpcl-beaver-extender/includes/images/seperators/center-up.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/wpcl-beaver-extender/includes/modules/beshortcode.php:9
    • > PHP Notice
      Trying to get property 'height' of non-object in wp-content/plugins/wpcl-beaver-extender/includes/images/seperators/arrow-up.php on line 3
    • > PHP Notice
      Undefined variable: fill in wp-content/plugins/wpcl-beaver-extender/includes/images/seperators/angle-right-down.php on line 2
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/wpcl-beaver-extender/js/templates/bemap.js.php on line 28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: beaver builder, beaver builder addon

wpcl-beaver-extender/wpcl-beaver-extender.php 92% from 13 tests

"WPCL Beaver Extender" version 1.1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected18,453 lines of code in 526 files:
LanguageFilesBlank linesComment linesLines of code
PHP742,8254,25511,809
JavaScript392409703,381
Sass33392772,873
SVG705248
JSON20081
Markdown221046
CSS1611615

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 130)
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity31.53
▷ Minimum class complexity1.00
▷ Maximum class complexity719.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity130.00
Code structure
Namespaces13
Interfaces3
Traits0
Classes55
▷ Abstract classes23.64%
▷ Concrete classes5396.36%
▷ Final classes11.89%
Methods533
▷ Static methods234.32%
▷ Public methods27351.22%
▷ Protected methods23744.47%
▷ Private methods234.32%
Functions15
▷ Named functions320.00%
▷ Anonymous functions1280.00%
Constants63
▷ Global constants11.59%
▷ Class constants6298.41%
▷ Public constants62100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin