84% page-builder-companion

Code Review | Page Builder Companion

WordPress plugin Page Builder Companion scored84%from 54 tests.

About plugin

  • Plugin page: page-builder-comp...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: May 16, 2019
  • Latest release: Nov 15, 2023
  • Number of updates: 11
  • Update frequency: every 150.1 days
  • Top authors: catchthemes (90.91%)maheshmaharjan (18.18%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,105 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.25ms] Passed 4 tests

This is a short check of server-side resources used by Page Builder Companion
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0433.60 ▼6.38
Dashboard /wp-admin3.35 ▲0.0443.93 ▼5.49
Posts /wp-admin/edit.php3.40 ▲0.0445.18 ▲0.09
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.13 ▼9.21
Media Library /wp-admin/upload.php3.27 ▲0.0434.22 ▲0.66

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Page Builder Companion
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.67 ▲0.321.79 ▲0.0742.41 ▼2.54
Dashboard /wp-admin2,195 ▲185.60 ▲0.0386.48 ▼16.6244.24 ▼1.40
Posts /wp-admin/edit.php2,174 ▲742.00 ▲0.0141.87 ▲5.1136.87 ▼1.28
Add New Post /wp-admin/post-new.php1,532 ▲323.14 ▼0.33611.93 ▼37.7850.10 ▼7.84
Media Library /wp-admin/upload.php1,400 ▲64.22 ▼0.0698.84 ▼1.3941.49 ▼0.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
The following issues need your attention
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/page-builder-companion/templates/pbc-no-sidebar.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-builder-companion/templates/helpers.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function page_builder_companion_minimal_get_header() in wp-content/plugins/page-builder-companion/templates/pbc-no-header-and-footer.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/page-builder-companion/templates/pbc-full-width.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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
4 plugin tags: templates, fullwidth, elementor, pagebuilder

page-builder-companion/page-builder-companion.php 92% from 13 tests

The main file in "Page Builder Companion" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 172 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin236 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP68041180
CSS36252
JavaScript1004

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
No PNG images were found in this plugin