83% balcomsoft-elementor-addons

Code Review | Balcomsoft Elementor Addons

WordPress plugin Balcomsoft Elementor Addons scored83%from 54 tests.

About plugin

  • Plugin page: balcomsoft-elemen...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Jan 30, 2023
  • Latest release: Apr 30, 2023
  • Number of updates: 8
  • Update frequency: every 11.7 days
  • Top authors: balcomsoft100 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /202 total downloads

Benchmarks

Plugin footprint 82% 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.07MB] [CPU: ▲461.38ms] 75% from 4 tests

Analyzing server-side resources used by Balcomsoft Elementor Addons
The following require your attention
  • Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 461.38ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0549.36 ▲6.92
Dashboard /wp-admin3.43 ▲0.131,896.83 ▲1,844.03
Posts /wp-admin/edit.php3.47 ▲0.11661.24 ▲609.60
Add New Post /wp-admin/post-new.php5.95 ▲0.06708.93 ▲607.47
Media Library /wp-admin/upload.php3.29 ▲0.06658.82 ▲621.52

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Balcomsoft Elementor Addons: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲10113.66 ▼0.861.59 ▼0.5445.38 ▼2.40
Dashboard /wp-admin2,264 ▲765.91 ▲0.03100.28 ▼10.9379.43 ▲40.74
Posts /wp-admin/edit.php2,122 ▲332.03 ▲0.0336.63 ▼1.1935.32 ▲0.96
Add New Post /wp-admin/post-new.php1,551 ▲1722.98 ▼0.14594.18 ▼97.1654.95 ▲1.79
Media Library /wp-admin/upload.php1,413 ▲224.26 ▲0.01106.41 ▼7.2246.66 ▼0.46

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 does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Bsoft\\add_action() in wp-content/plugins/balcomsoft-elementor-addons/includes/class-bsoft-elementor-widgets.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/balcomsoft-elementor-addons/includes/ad-banner.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: templates, balcomsoft, elementor, elementor elements, widgets...

balcomsoft-elementor-addons/balcomsoft-elementor-addons.php 85% from 13 tests

"Balcomsoft Elementor Addons" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
There were no executable files found in this plugin5,713 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP53053655,276
CSS7811285
JavaScript1272152

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 101)
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity42.33
▷ Minimum class complexity10.00
▷ Maximum class complexity102.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity101.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods44
▷ Static methods24.55%
▷ Public methods2761.36%
▷ Protected methods1636.36%
▷ Private methods12.27%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/widgets/placeholders/placeholder-image-horizontal.png1.04KB1.16KB0.00%
assets/images/widgets/placeholders/placeholder-image.png2.46KB2.61KB0.00%
assets/images/widgets/placeholders/placeholder-user.png19.92KB5.74KB▼ 71.20%