90% dragfy-addons-for-elementor

Code Review | Dragfy Addons for Elementor

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

About plugin

  • Plugin page: dragfy-addons-for...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.4.2
  • WordPress version: 6.3.1
  • First release: Mar 17, 2020
  • Latest release: Jul 16, 2020
  • Number of updates: 21
  • Update frequency: every 6.3 days
  • Top authors: dragfy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /14,591 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.04MB] [CPU: ▼3.89ms] Passed 4 tests

An overview of server-side resources used by Dragfy Addons for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.55 ▼0.61
Dashboard /wp-admin3.34 ▲0.0444.39 ▼3.23
Posts /wp-admin/edit.php3.45 ▲0.1047.25 ▼2.14
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.07 ▼9.58
Media Library /wp-admin/upload.php3.26 ▲0.0334.29 ▲0.18

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 164 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-comments
elementor_disable_typography_schemes
can_compress_scripts
elementor_disable_color_schemes
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Dragfy Addons for Elementor: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲14813.19 ▼1.561.65 ▼0.6843.61 ▼5.01
Dashboard /wp-admin2,308 ▲1205.82 ▼0.22106.35 ▲0.3767.54 ▲19.06
Posts /wp-admin/edit.php2,200 ▲1112.09 ▲0.0940.49 ▲3.8238.03 ▲1.67
Add New Post /wp-admin/post-new.php1,625 ▲10523.21 ▲0.00749.59 ▲76.1148.48 ▼3.48
Media Library /wp-admin/upload.php1,493 ▲1054.21 ▼0.09100.13 ▼2.5584.43 ▲39.19

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • elementor_disable_typography_schemes
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • elementor_disable_color_schemes

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
Everything seems fine, however this is by no means an exhaustive test

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 Passed 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
8 plugin tags: add-ons, elementor page builder, elementor widgets, elementor addons, widgets...

dragfy-addons-for-elementor/dragfy-addons-for-elementor.php Passed 13 tests

"Dragfy Addons for Elementor" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
127 characters long description:
A collection of premium quality addons or widgets for use in Elementor page builder. Elementor must be installed and activated.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected41,547 lines of code in 158 files:
LanguageFilesBlank linesComment linesLines of code
CSS483,18225216,684
PHP342,61648415,135
JavaScript151,6161,0028,721
SVG6115141,007

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity20.23
▷ Minimum class complexity4.00
▷ Maximum class complexity73.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity71.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes30
▷ Abstract classes00.00%
▷ Concrete classes30100.00%
▷ Final classes00.00%
Methods266
▷ Static methods197.14%
▷ Public methods21279.70%
▷ Protected methods5420.30%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/01.png9.14KB4.16KB▼ 54.51%