84% best-addons-for-elementor

Code Review | Best Addons for Elementor

WordPress plugin Best Addons for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: best-addons-for-e...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.0
  • WordPress version: 6.3.1
  • First release: Sep 2, 2022
  • Latest release: Sep 2, 2022
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: rejuancse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /209 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.80ms] Passed 4 tests

Analyzing server-side resources used by Best Addons for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.16 ▼3.09
Dashboard /wp-admin3.39 ▲0.0857.57 ▲4.74
Posts /wp-admin/edit.php3.50 ▲0.1448.60 ▼0.99
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.92 ▼11.86
Media Library /wp-admin/upload.php3.31 ▲0.0839.66 ▲5.41

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 81 new files
Database: no new tables, 10 new options
New WordPress options
wp_user_role_selector
db_upgraded
vendor_type
can_compress_scripts
bafe_show_description
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
wp_bafe_is_used
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Best Addons for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲5614.25 ▼0.101.76 ▼0.3542.03 ▼0.53
Dashboard /wp-admin2,233 ▲565.59 ▲0.0091.61 ▲3.6075.51 ▲35.79
Posts /wp-admin/edit.php2,154 ▲572.12 ▲0.1537.86 ▼0.2633.06 ▼1.51
Add New Post /wp-admin/post-new.php1,597 ▲7122.84 ▼0.65756.21 ▲32.5557.32 ▲0.08
Media Library /wp-admin/upload.php1,444 ▲474.13 ▼0.08100.01 ▼23.7682.54 ▲33.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 10 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • wp_user_role_selector
    • bafe_show_description
    • theysaidso_admin_options
    • wp_bafe_is_used
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • vendor_type

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/best-addons-for-elementor/app/settings/view/Addons.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/best-addons-for-elementor/app/settings/view/pages/get-pro.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: widgets, elements, elementor widget, elementor addons, elementor...

best-addons-for-elementor/best-addons-for-elementor.php 85% from 13 tests

The main PHP script in "Best Addons for Elementor" version 1.0.4 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin8,850 lines of code in 58 files:
LanguageFilesBlank linesComment linesLines of code
PHP266372475,157
Sass2210052,145
PO File1333492696
CSS55449658
JavaScript33022153
SVG10041

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.16
Average class complexity5.86
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes14.76%
Methods144
▷ Static methods32.08%
▷ Public methods11277.78%
▷ Protected methods3222.22%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
19 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icons/restaurant-menu.png2.38KB1.65KB▼ 30.68%
assets/images/icons/deliver-food.png2.98KB1.96KB▼ 34.13%
assets/images/icons/card-exchange.png1.41KB0.89KB▼ 36.69%
assets/images/icons/h.png0.86KB0.52KB▼ 39.05%
assets/images/icons/photo-gallery.png1.33KB0.92KB▼ 30.34%