68% elements-buddy

Code Review | Elements Buddy Elementor Addons

WordPress plugin Elements Buddy Elementor Addons scored68%from 54 tests.

About plugin

  • Plugin page: elements-buddy
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Mar 1, 2021
  • Latest release: Nov 27, 2021
  • Number of updates: 7
  • Update frequency: every 39.1 days
  • Top authors: itechtheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,948 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.19MB] [CPU: ▼38.48ms] Passed 4 tests

An overview of server-side resources used by Elements Buddy Elementor Addons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.79 ▼0.6715.30 ▼25.91
Dashboard /wp-admin2.82 ▼0.4816.16 ▼34.21
Posts /wp-admin/edit.php2.82 ▼0.5317.65 ▼26.33
Add New Post /wp-admin/post-new.php2.82 ▼3.0618.13 ▼67.46
Media Library /wp-admin/upload.php2.82 ▼0.4017.11 ▼20.99

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

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

Browser metrics Passed 4 tests

Elements Buddy Elementor Addons: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲20313.63 ▼0.378.78 ▲6.8339.03 ▼5.90
Dashboard /wp-admin2,225 ▲375.80 ▼0.09101.40 ▼12.4842.91 ▼3.42
Posts /wp-admin/edit.php2,113 ▲242.06 ▲0.0040.95 ▲3.3436.33 ▲1.91
Add New Post /wp-admin/post-new.php1,531 ▼223.08 ▼0.32667.45 ▼1.1952.02 ▼4.84
Media Library /wp-admin/upload.php1,407 ▲194.28 ▲0.08102.55 ▼14.0746.50 ▲3.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/elements-buddy/admin/partials/elements-buddy-admin-display.php
    • > /wp-content/plugins/elements-buddy/public/partials/elements-buddy-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function elementsbuddy\\add_action() in wp-content/plugins/elements-buddy/plugin.php:107

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Hero One), #2 (Hero Two), #3 (Hero Three), #4 (Image Box)
You can look at the official readme.txt

elements-buddy/elements-buddy.php Passed 13 tests

The principal PHP file in "Elements Buddy Elementor Addons" v. 1.2.0 is loaded by WordPress automatically on each request
105 characters long description:
Elements Buddy is a set of slick and effective widgets that works seamlessly with Elementor page builder.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin8,660 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
CSS49561656,323
PHP173629921,496
Sass4488712
JavaScript42768129

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.77
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.16
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes17.69%
Methods62
▷ Static methods34.84%
▷ Public methods4877.42%
▷ Protected methods812.90%
▷ Private methods69.68%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin