90% wp-page-builder-woocommerce-addon

Code Review | Themeum Page Builder WooCommerce Addon

WordPress plugin Themeum Page Builder WooCommerce Addon scored 90% from 54 tests.

About plugin

  • Plugin page: wp-page-builder-w...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Mar 20, 2019
  • Latest release: Aug 22, 2021
  • Number of updates: 7
  • Update frequency: every 126.9 days
  • Top authors: fahimmurshed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 2,729 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.76ms] Passed 4 tests

Server-side resources used by Themeum Page Builder WooCommerce Addon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.46 ▲3.51
Dashboard /wp-admin3.33 ▲0.0349.21 ▲6.15
Posts /wp-admin/edit.php3.38 ▲0.0346.33 ▲5.34
Add New Post /wp-admin/post-new.php5.91 ▲0.0381.69 ▼9.89
Media Library /wp-admin/upload.php3.25 ▲0.0333.08 ▼2.01

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Themeum Page Builder WooCommerce Addon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲13913.82 ▼0.378.16 ▲6.5046.81 ▲7.23
Dashboard /wp-admin2,206 ▲174.83 ▼0.11111.06 ▼13.9342.34 ▼1.49
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0637.31 ▲1.6132.27 ▲1.07
Add New Post /wp-admin/post-new.php1,533 ▲1923.32 ▲5.67683.93 ▲16.4156.51 ▼7.87
Media Library /wp-admin/upload.php1,391 ▲64.21 ▲0.1098.63 ▼6.1044.15 ▼1.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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 96% 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
1 plugin tags: woocommerce addon for wp page builder

wp-page-builder-woocommerce-addon/wp-pagebuilder-woocommerce-addon.php 92% from 13 tests

The main PHP script in "Themeum Page Builder WooCommerce Addon" version 1.0.5 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-page-builder-woocommerce-addon.php" instead of "wp-pagebuilder-woocommerce-addon.php")

Code Analysis Passed 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
Success! There were no dangerous files found in this plugin611 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS22410445
PHP22620165
JavaScript1061

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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