90% definitive-addons-for-elementor

Code Review | Definitive Addons for Elementor

WordPress plugin Definitive Addons for Elementor scored90%from 54 tests.

About plugin

  • Plugin page: definitive-addons...
  • Plugin version: 1.5.16
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 13, 2020
  • Latest release: Jul 8, 2023
  • Number of updates: 213
  • Update frequency: every 5.7 days
  • Top authors: khuda (67.61%)softfirm (31.46%)Otto42 (1.88%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /19,972 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.33MB] [CPU: ▼0.72ms] Passed 4 tests

This is a short check of server-side resources used by Definitive Addons for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3443.25 ▲3.43
Dashboard /wp-admin3.63 ▲0.3247.47 ▲1.42
Posts /wp-admin/edit.php3.74 ▲0.3847.72 ▲4.85
Add New Post /wp-admin/post-new.php6.21 ▲0.3290.27 ▼10.53
Media Library /wp-admin/upload.php3.55 ▲0.3236.79 ▲2.81

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Definitive Addons for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,956 ▲22113.72 ▼0.668.82 ▲7.1342.36 ▼4.10
Dashboard /wp-admin2,241 ▲535.81 ▼0.05101.21 ▼5.1874.29 ▲30.12
Posts /wp-admin/edit.php2,120 ▲312.01 ▼0.0040.02 ▲3.1937.83 ▲2.33
Add New Post /wp-admin/post-new.php1,558 ▲3818.09 ▼5.06758.39 ▲70.6356.90 ▲2.65
Media Library /wp-admin/upload.php1,420 ▲384.16 ▼0.2498.91 ▲0.5483.54 ▲39.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: widget, elementor, element, addons, definitive

definitive-addons-for-elementor/definitive_adons_elementor.php 92% from 13 tests

The main PHP file in "Definitive Addons for Elementor" ver. 1.5.16 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("definitive-addons-for-elementor.php" instead of "definitive_adons_elementor.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
No dangerous file extensions were detected29,634 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
PHP404,1412,48819,162
CSS61,098925,372
JavaScript101,6201,0555,087
SVG11013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity7.90
▷ Minimum class complexity1.00
▷ Maximum class complexity65.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes39
▷ Abstract classes00.00%
▷ Concrete classes39100.00%
▷ Final classes12.56%
Methods291
▷ Static methods258.59%
▷ Public methods22175.95%
▷ Protected methods7024.05%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/admin/assets/img/icon-256x256.png30.65KB16.46KB▼ 46.31%