84% cpb-page-builder

Code Review | CPB(Custom Page Builder)

WordPress plugin CPB(Custom Page Builder) scored84%from 54 tests.

About plugin

  • Plugin page: cpb-page-builder
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 17, 2017
  • Latest release: Dec 28, 2017
  • Number of updates: 7
  • Update frequency: every 2.6 days
  • Top authors: fgirach09 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /806 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.91ms] Passed 4 tests

Server-side resources used by CPB(Custom Page Builder)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.31 ▲1.76
Dashboard /wp-admin3.37 ▲0.0643.60 ▼2.84
Posts /wp-admin/edit.php3.48 ▲0.1248.41 ▼0.59
Add New Post /wp-admin/post-new.php5.95 ▲0.0681.30 ▼5.96
Media Library /wp-admin/upload.php3.29 ▲0.0634.07 ▲1.90

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for CPB(Custom Page Builder)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.31 ▼0.991.58 ▼0.2341.13 ▼1.03
Dashboard /wp-admin2,206 ▲215.90 ▲0.04102.51 ▲4.8536.50 ▼6.17
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0239.13 ▲2.2734.70 ▲2.42
Add New Post /wp-admin/post-new.php1,533 ▲523.20 ▲0.01671.31 ▲66.7852.61 ▲2.21
Media Library /wp-admin/upload.php1,388 ▲34.26 ▲0.1294.43 ▼5.0839.76 ▼3.26

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cpb-page-builder/includes/functions.php:100
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cpb-page-builder/includes/main.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cpb-page-builder/includes/front.php:8

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: custom, wordpress plugin, page, wordpress, page builder...

cpb-page-builder/custom page builder.php 92% from 13 tests

The main file in "CPB(Custom Page Builder)" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cpb-page-builder.php" instead of "custom page builder.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 plugin604 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP4135168330
CSS2419158
JavaScript2303589
Markdown110027

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.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
No PNG images were found in this plugin