73% wpbits-addons-for-elementor

Code Review | WPBITS Addons For Elementor Page Builder

WordPress plugin WPBITS Addons For Elementor Page Builder scored 73% from 54 tests.

About plugin

  • Plugin page: wpbits-addons-for...
  • Plugin version: 1.3.4.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 18, 2020
  • Latest release: Jul 17, 2023
  • Number of updates: 22
  • Update frequency: every 56.6 days
  • Top authors: wpbits (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active / 7,699 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲5.04MB] [CPU: ▲23.09ms] 75% from 4 tests

An overview of server-side resources used by WPBITS Addons For Elementor Page Builder
Please have a look at the following items
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 5.04MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.89 ▲5.4365.00 ▲20.45
Dashboard /wp-admin8.91 ▲5.6169.66 ▲15.56
Posts /wp-admin/edit.php8.91 ▲5.5578.30 ▲29.07
Add New Post /wp-admin/post-new.php9.45 ▲3.57124.26 ▲27.29
Media Library /wp-admin/upload.php8.91 ▲5.6868.89 ▲34.19
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius8.9165.86

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 864 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
fs_debug_mode
fs_active_plugins
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
fs_accounts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WPBITS Addons For Elementor Page Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲11713.29 ▼1.101.65 ▼0.1631.51 ▼13.44
Dashboard /wp-admin2,256 ▲684.89 ▼1.02108.40 ▼4.6845.02 ▲0.44
Posts /wp-admin/edit.php2,139 ▲532.04 ▲0.0341.07 ▲4.5639.48 ▲3.58
Add New Post /wp-admin/post-new.php1,531 ▼1122.15 ▼1.36656.85 ▼7.4646.12 ▼11.12
Media Library /wp-admin/upload.php1,441 ▲534.22 ▼0.01103.62 ▲6.2149.57 ▲8.88
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,1001.6928.0230.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/wpbits-addons-for-elementor/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • fs_debug_mode
    • widget_theysaidso_widget
    • fs_active_plugins
    • fs_accounts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 44× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/wpbits-addons-for-elementor/includes/cmb2/includes/types/CMB2_Type_File_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/wpbits-addons-for-elementor/includes/cmb2/includes/types/CMB2_Type_File.php:13
    • > PHP Warning
      Use of undefined constant WPBITS_AFE_ABSPATH - assumed 'WPBITS_AFE_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpbits-addons-for-elementor/includes/helpers.php on line 176
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/wpbits-addons-for-elementor/includes/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wpbits-addons-for-elementor/includes/cmb2/includes/types/CMB2_Type_Title.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/wpbits-addons-for-elementor/includes/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/wpbits-addons-for-elementor/includes/cmb2/includes/types/CMB2_Type_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/wpbits-addons-for-elementor/includes/cmb2/includes/types/CMB2_Type_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/wpbits-addons-for-elementor/includes/cmb2/includes/types/CMB2_Type_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wpbits-addons-for-elementor/includes/cmb2/includes/types/CMB2_Type_Multi_Base.php:13

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: You are using too many tags: 23 tag instead of maximum 10
Please take inspiration from this readme.txt

wpbits-addons-for-elementor/wpbits-addons-for-elementor.php Passed 13 tests

The primary PHP file in "WPBITS Addons For Elementor Page Builder" version 1.3.4.2 is used by WordPress to initiate all plugin functionality
33 characters long description:
Addons for Elementor Page Builder

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
Good job! No executable or dangerous file extensions detected112,561 lines of code in 535 files:
LanguageFilesBlank linesComment linesLines of code
PHP20812,91224,21463,137
PO File12014,31518,50232,323
CSS967261,27312,377
JavaScript294136591,722
JSON69001,408
Markdown42440842
HTML1110489
SVG81306263

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity41.67
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes145
▷ Abstract classes117.59%
▷ Concrete classes13492.41%
▷ Final classes10.75%
Methods1,999
▷ Static methods28714.36%
▷ Public methods1,46273.14%
▷ Protected methods1597.95%
▷ Private methods37818.91%
Functions173
▷ Named functions16897.11%
▷ Anonymous functions52.89%
Constants163
▷ Global constants11067.48%
▷ Class constants5332.52%
▷ Public constants53100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
145 compressed PNG files occupy 8.65MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/cmb2/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
assets/js/templates/template-images/53.png17.86KB17.90KB0.00%
assets/js/templates/template-images/large/63.png23.05KB23.33KB0.00%
assets/js/templates/template-images/17.png62.73KB66.52KB0.00%
assets/js/templates/template-images/large/34.png311.45KB311.46KB0.00%