78% drozd-addons-for-elementor

Code Review | Drozd - Addons for Elementor

WordPress plugin Drozd - Addons for Elementor scored78%from 54 tests.

About plugin

  • Plugin page: drozd-addons-for-...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.0
  • WordPress version: 6.3.1
  • First release: Sep 9, 2019
  • Latest release: May 31, 2022
  • Number of updates: 22
  • Update frequency: every 45.4 days
  • Top authors: urchenko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /6,184 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼6.03ms] Passed 4 tests

Analyzing server-side resources used by Drozd - Addons for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.19 ▼0.20
Dashboard /wp-admin3.43 ▲0.1249.78 ▼0.55
Posts /wp-admin/edit.php3.54 ▲0.1846.06 ▼1.22
Add New Post /wp-admin/post-new.php6.03 ▲0.1479.93 ▼22.13
Media Library /wp-admin/upload.php3.35 ▲0.1237.98 ▲5.24

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Drozd - Addons for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲17013.67 ▼0.645.50 ▲3.5347.00 ▲3.94
Dashboard /wp-admin2,224 ▲365.89 ▼0.01112.47 ▼3.1083.56 ▲35.74
Posts /wp-admin/edit.php2,124 ▲352.03 ▲0.0634.92 ▼2.5234.41 ▼3.29
Add New Post /wp-admin/post-new.php1,699 ▲17022.55 ▼0.58746.18 ▲80.5055.15 ▲8.17
Media Library /wp-admin/upload.php1,418 ▲304.17 ▼0.01105.76 ▲6.5545.38 ▲2.06

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/drozd-addons-for-elementor/public/partials/drozd-public-display.php
    • > /wp-content/plugins/drozd-addons-for-elementor/admin/partials/elements.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/drozd-addons-for-elementor/admin/partials/general.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/drozd-addons-for-elementor/public/elementor/functions/elementor-functions.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

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

The primary PHP file in "Drozd - Addons for Elementor" version 1.1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("drozd-addons-for-elementor.php" instead of "drozd.php")

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
Everything looks great! No dangerous files found in this plugin19,719 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
PHP422,9361,31817,378
CSS3941852,292
SVG10031
JavaScript237218

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity9.35
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes34
▷ Abstract classes00.00%
▷ Concrete classes34100.00%
▷ Final classes12.94%
Methods217
▷ Static methods31.38%
▷ Public methods13461.75%
▷ Protected methods7835.94%
▷ Private methods52.30%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.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
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/drozd-logo.png1.01KB0.34KB▼ 66.31%
admin/images/documents.png0.35KB0.36KB0.00%
admin/images/icon-element.png0.31KB0.32KB0.00%
admin/images/logo-150.png8.34KB8.54KB0.00%
admin/images/drozd-100.png1.71KB1.76KB0.00%