89% wpb-elementor-addons

Code Review | WPB Elementor Addons

WordPress plugin WPB Elementor Addons scored89%from 54 tests.

About plugin

  • Plugin page: wpb-elementor-addons
  • Plugin version: 1.0.8.9
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 22, 2019
  • Latest release: Sep 14, 2023
  • Number of updates: 66
  • Update frequency: every 24.8 days
  • Top authors: wpbean (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

5,000+ active /70,082 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.44ms] Passed 4 tests

Server-side resources used by WPB Elementor Addons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.36 ▲3.29
Dashboard /wp-admin3.31 ▲0.0044.81 ▼0.50
Posts /wp-admin/edit.php3.36 ▲0.0041.83 ▼6.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.59 ▼27.89
Media Library /wp-admin/upload.php3.23 ▲0.0031.08 ▼2.70

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

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

Browser metrics Passed 4 tests

WPB Elementor Addons: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.31 ▼1.301.94 ▲0.2045.17 ▲3.60
Dashboard /wp-admin2,207 ▲165.83 ▲0.91101.89 ▲1.8539.74 ▼1.96
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0134.19 ▼8.0535.87 ▼0.27
Add New Post /wp-admin/post-new.php1,523 ▼1923.24 ▲4.98667.05 ▲56.1558.80 ▲3.92
Media Library /wp-admin/upload.php1,392 ▲44.22 ▲0.0194.45 ▼4.2341.32 ▼1.52

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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
Attributes that need to be fixed:
  • Tags: There are too many tags (19 tag instead of maximum 10)
The official readme.txt might help

wpb-elementor-addons/main.php 92% from 13 tests

"WPB Elementor Addons" version 1.0.8.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpb-elementor-addons.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected17,532 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP221,8061,47412,438
CSS91321323,272
PO File1451686931
SVG100492
JavaScript75075399

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity27.00
▷ Minimum class complexity2.00
▷ Maximum class complexity94.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces1
Interfaces0
Traits1
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods212
▷ Static methods20.94%
▷ Public methods14769.34%
▷ Protected methods3717.45%
▷ Private methods2813.21%
Functions26
▷ Named functions2492.31%
▷ Anonymous functions27.69%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.12MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/puzzle.png6.80KB4.73KB▼ 30.47%
assets/img/facebook.png1.84KB1.87KB0.00%
assets/images/video-thum.png106.01KB40.11KB▼ 62.17%
assets/images/placeholder.png6.12KB6.54KB0.00%