68% pootle-page-builder

Code Review | Pootle Pagebuilder - WordPress Page builder

WordPress plugin Pootle Pagebuilder - WordPress Page builder scored68%from 54 tests.

About plugin

  • Plugin page: pootle-page-builder
  • Plugin version: 5.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-5.9.0
  • WordPress version: 6.3.1
  • First release: Jul 8, 2015
  • Latest release: Mar 21, 2022
  • Number of updates: 103
  • Update frequency: every 23.8 days
  • Top authors: shramee (68.93%)PootlePress (32.04%)

Code review

54 tests

User reviews

42 reviews

Install metrics

1,000+ active /101,051 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.75MB] [CPU: ▼1.11ms] Passed 4 tests

This is a short check of server-side resources used by Pootle Pagebuilder - WordPress Page builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.19 ▲0.7239.18 ▲2.69
Dashboard /wp-admin4.06 ▲0.7646.95 ▼0.53
Posts /wp-admin/edit.php4.11 ▲0.7643.59 ▼12.61
Add New Post /wp-admin/post-new.php7.96 ▲2.07990.72 ▲890.98
Media Library /wp-admin/upload.php3.98 ▲0.7540.76 ▲6.01
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius4.1638.37

Server storage [IO: ▲4.64MB] [DB: ▲0.27MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 329 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
fs_active_plugins
widget_theysaidso_widget
fs_gdpr
widget_recent-posts
fs_accounts
can_compress_scripts
widget_recent-comments
db_upgraded
fs_debug_mode

Browser metrics Passed 4 tests

A check of browser resources used by Pootle Pagebuilder - WordPress Page builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,333 ▲58714.20 ▼0.2215.50 ▲13.8227.12 ▼12.48
Dashboard /wp-admin2,256 ▲714.95 ▼0.10114.48 ▲6.6547.19 ▲5.45
Posts /wp-admin/edit.php2,136 ▲442.02 ▲0.0036.03 ▼3.7131.83 ▼4.41
Add New Post /wp-admin/post-new.php1,625 ▲11123.44 ▲5.78682.73 ▲71.3736.27 ▼19.52
Media Library /wp-admin/upload.php1,498 ▲1164.25 ▲0.0699.11 ▼3.4643.98 ▼1.53
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius1,0821.6925.4527.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/pootle-page-builder/wp-sdk/includes/class-freemius.php+8911
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 10 options
    • fs_accounts
    • fs_active_plugins
    • theysaidso_admin_options
    • db_upgraded
    • fs_gdpr
    • fs_debug_mode
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/pootle-page-builder/inc/live-editor/inc/tpl-tour.php
    • > /wp-content/plugins/pootle-page-builder/inc/live-editor/inc/tpl-ipad-html.php
  • 38× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pootle-page-builder/inc/modules/ninja-forms.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pootle-page-builder/inc/addon-manager/class-manager.php:10
    • > PHP Fatal error
      require_once(): Failed opening required 'POOTLEPB_DIRinc/modules/pootle-cloud.php' (include_path='.:/usr/share/php') in wp-content/plugins/pootle-page-builder/inc/modules/init.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pootle-page-builder/inc/class-custom-styles.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_url() in wp-content/plugins/pootle-page-builder/tpl/welcome.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pootle-page-builder/tpl/add.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pootle-page-builder/inc/class-content-blocks.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pootle-page-builder/inc/styles-fields.php:435
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pootle-page-builder/inc/modules/pootle-cloud.php:80
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/pootle-page-builder/inc/vars.php:196

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt is a good inspiration

pootle-page-builder/pootle-page-builder.php Passed 13 tests

This is the main PHP file of "Pootle Pagebuilder - WordPress Page builder" version 5.7.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
127 characters long description:
Pootle Pagebuilder is a front-end, drag and drop page builder that makes it easy to create beautiful WordPress pages and posts.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin54,582 lines of code in 253 files:
LanguageFilesBlank linesComment linesLines of code
PHP1579,07319,08139,359
JavaScript491,3601,0419,267
Sass14484133,634
PO File35135761,149
CSS28120491,145
JSON10026
Markdown1002

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,029)
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity69.64
▷ Minimum class complexity1.00
▷ Maximum class complexity3,029.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity89.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes67
▷ Abstract classes22.99%
▷ Concrete classes6597.01%
▷ Final classes812.31%
Methods1,439
▷ Static methods19613.62%
▷ Public methods1,03671.99%
▷ Protected methods322.22%
▷ Private methods37125.78%
Functions149
▷ Named functions14496.64%
▷ Anonymous functions53.36%
Constants135
▷ Global constants10376.30%
▷ Class constants3223.70%
▷ Public constants32100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
22 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wp-sdk/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
inc/live-editor/assets/images/tooltip-pointer.png0.56KB0.13KB▼ 77.60%
inc/pootle-buttons/assets/pbtn.png1.58KB0.38KB▼ 75.90%
inc/addon-manager/assets/images/warn.png0.65KB0.68KB0.00%
inc/live-editor/assets/images/cell-width.png0.59KB0.11KB▼ 80.67%