78% pollen

Code Review | Pollen - WPBakery Page Builder Addons

WordPress plugin Pollen - WPBakery Page Builder Addons scored78%from 54 tests.

About plugin

  • Plugin page: pollen
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Aug 2, 2019
  • Latest release: Mar 8, 2021
  • Number of updates: 15
  • Update frequency: every 39.0 days
  • Top authors: visualmodo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /9,106 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼0.91ms] Passed 4 tests

This is a short check of server-side resources used by Pollen - WPBakery Page Builder Addons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.33 ▲4.50
Dashboard /wp-admin3.36 ▲0.0545.40 ▼4.89
Posts /wp-admin/edit.php3.47 ▲0.1147.92 ▲0.93
Add New Post /wp-admin/post-new.php5.94 ▲0.0695.72 ▼1.49
Media Library /wp-admin/upload.php3.28 ▲0.0536.54 ▲1.80

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Pollen - WPBakery Page Builder Addons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲13913.29 ▼1.0715.63 ▲14.1536.54 ▼4.59
Dashboard /wp-admin2,250 ▲735.56 ▼0.1184.79 ▼2.4881.59 ▲40.01
Posts /wp-admin/edit.php2,158 ▲582.03 ▲0.0538.67 ▲0.8035.05 ▲2.98
Add New Post /wp-admin/post-new.php1,584 ▲5818.54 ▼4.82675.37 ▼11.4754.83 ▼4.37
Media Library /wp-admin/upload.php1,458 ▲584.20 ▼0.0892.60 ▼13.2373.42 ▲27.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 15× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/pollen/includes/elements/elements/pricing.php
    • > /wp-content/plugins/pollen/includes/elements/elements/semi-circular-progress-bar.php
    • > /wp-content/plugins/pollen/includes/elements/elements/svg.php
    • > /wp-content/plugins/pollen/pollen.php
    • > /wp-content/plugins/pollen/includes/elements/elements/modal.php
    • > /wp-content/plugins/pollen/includes/paramns/icon-manager/icon-manager.php
    • > /wp-content/plugins/pollen/includes/elements/elements/list-group.php
    • > /wp-content/plugins/pollen/includes/elements/elements/circular-progress-bar.php
    • > /wp-content/plugins/pollen/includes/elements/elements/icon.php
    • > /wp-content/plugins/pollen/includes/elements/elements/alert.php
  • 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/pollen/includes/options/core/templates/panel/header.tpl.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Section' not found in wp-content/plugins/pollen/includes/options/core/inc/extensions/customizer/inc/customizer_devs.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pollen/includes/options/core/inc/class.p.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/pollen/includes/options/core/inc/welcome/views/extensions.php:64
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/pollen/includes/options/core/templates/panel/container.tpl.php:12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/pollen/includes/options/core/templates/panel/content.tpl.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pollen/includes/options/core/inc/welcome/views/support.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pollen/includes/options/core/inc/welcome/views/credits.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/pollen/includes/options/core/inc/extensions/customizer/inc/customizer_control.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Panel' not found in wp-content/plugins/pollen/includes/options/core/inc/extensions/customizer/inc/customizer_panel.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2 in pollen/assets to your readme.txt
  • Tags: There are too many tags (16 tag instead of maximum 10)
Please take inspiration from this readme.txt

pollen/pollen.php Passed 13 tests

The entry point to "Pollen - WPBakery Page Builder Addons" version 1.0.8 is a PHP file that has certain tags in its header comment area
74 characters long description:
Get beautiful & free elements built exclusively for WPBakery Page Builder.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin46,877 lines of code in 325 files:
LanguageFilesBlank linesComment linesLines of code
PHP1264,5065,77020,956
JavaScript892,6712,08212,308
Sass551,192607,722
CSS516821143,978
SVG201951
JSON11840909
LESS10053

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 113)
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity29.57
▷ Minimum class complexity1.00
▷ Maximum class complexity873.00
Average method complexity6.58
▷ Minimum method complexity1.00
▷ Maximum method complexity113.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes122
▷ Abstract classes00.00%
▷ Concrete classes122100.00%
▷ Final classes00.00%
Methods625
▷ Static methods10316.48%
▷ Public methods46874.88%
▷ Protected methods10717.12%
▷ Private methods508.00%
Functions26
▷ Named functions2596.15%
▷ Anonymous functions13.85%
Constants58
▷ Global constants11.72%
▷ Class constants5798.28%
▷ Public constants57100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
46 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/options/core/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
includes/elements/images/alert.png0.22KB0.14KB▼ 36.84%
includes/options/core/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
includes/elements/images/svg.png0.36KB0.21KB▼ 40.81%
includes/elements/images/infobox.png0.23KB0.15KB▼ 33.33%