89% wpzoom-beaver-builder-templates

Code Review | WPZOOM Beaver Builder Templates

WordPress plugin WPZOOM Beaver Builder Templates scored89%from 54 tests.

About plugin

  • Plugin page: wpzoom-beaver-bui...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Apr 9, 2021
  • Latest release: Nov 2, 2022
  • Number of updates: 10
  • Update frequency: every 57.3 days
  • Top authors: WPZOOM (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /12,353 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by WPZOOM Beaver Builder Templates
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.54 ▼8.35
Dashboard /wp-admin3.32 ▲0.0251.10 ▼2.33
Posts /wp-admin/edit.php3.38 ▲0.0149.84 ▼1.98
Add New Post /wp-admin/post-new.php5.91 ▲0.0193.54 ▼3.88
Media Library /wp-admin/upload.php3.25 ▲0.0137.82 ▲3.08

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPZOOM Beaver Builder Templates
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.27 ▼0.092.04 ▼0.3943.68 ▼1.52
Dashboard /wp-admin2,195 ▲215.62 ▼0.0684.91 ▼7.8037.08 ▼7.48
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0635.31 ▼0.6533.91 ▼3.64
Add New Post /wp-admin/post-new.php1,528 ▼023.08 ▲0.10650.58 ▼39.7157.83 ▲2.83
Media Library /wp-admin/upload.php1,403 ▲34.22 ▼0.0196.16 ▼8.2942.74 ▼3.29

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 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (/assets/screenshots/1.png) image missing
The official readme.txt is a good inspiration

wpzoom-beaver-builder-templates/beaver-builder-templates.php 85% from 13 tests

The main PHP file in "WPZOOM Beaver Builder Templates" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpzoom-beaver-builder-templates.php" instead of "beaver-builder-templates.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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 plugin79 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32711479

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.60
▷ Minimum method complexity2.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods5
▷ Static methods480.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin