78% wezido-elementor-addon-based-on-easy-digital-downloads

Code Review | Wezido - Elementor Addon Based on Easy Digital Downloads

WordPress plugin Wezido - Elementor Addon Based on Easy Digital Downloads scored78%from 54 tests.

About plugin

  • Plugin page: wezido-elementor-...
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Feb 16, 2021
  • Latest release: Jul 5, 2021
  • Number of updates: 6
  • Update frequency: every 23.2 days
  • Top authors: teconce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /777 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲1.56MB] [CPU: ▲4.44ms] Passed 4 tests

An overview of server-side resources used by Wezido - Elementor Addon Based on Easy Digital Downloads
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.04 ▲1.5846.54 ▲9.36
Dashboard /wp-admin4.87 ▲1.5656.28 ▲6.54
Posts /wp-admin/edit.php4.92 ▲1.5661.35 ▲14.41
Add New Post /wp-admin/post-new.php7.47 ▲1.5893.64 ▼12.56
Media Library /wp-admin/upload.php4.79 ▲1.5653.44 ▲21.30

Server storage [IO: ▲4.55MB] [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: 200 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
wezido_options

Browser metrics Passed 4 tests

A check of browser resources used by Wezido - Elementor Addon Based on Easy Digital Downloads
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,004 ▲25813.65 ▼0.7114.49 ▲12.6840.87 ▲1.68
Dashboard /wp-admin2,269 ▲875.83 ▲0.03105.11 ▲2.3241.10 ▼2.83
Posts /wp-admin/edit.php2,154 ▲622.03 ▼0.0136.49 ▼2.4734.44 ▼0.17
Add New Post /wp-admin/post-new.php1,580 ▲6623.45 ▲5.76676.79 ▲2.2754.52 ▲0.79
Media Library /wp-admin/upload.php1,457 ▲694.24 ▲0.05101.90 ▼7.9943.05 ▼4.54
Widgets /wp-admin/admin.php?page=wezido#tab=widgets1,4213.7254.0171.46
Welcome /wp-admin/admin.php?page=wezido#tab=welcome1,4043.3353.1772.51
Scripts /wp-admin/admin.php?page=wezido#tab=scripts1,4243.6750.0772.02

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • wezido_options
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wezido-elementor-addon-based-on-easy-digital-downloads/public/partials/wezido-public-display.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'CSF_Fields' not found in wp-content/plugins/wezido-elementor-addon-based-on-easy-digital-downloads/admin/partials/wezido-extend-fields.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wezido-elementor-addon-based-on-easy-digital-downloads/elementor-widgets/class-wezido-elementor-widgets.php:220

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 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
7 plugin tags: elementor addon, wordpress page builder, elementor widget, elementor, addons...

wezido-elementor-addon-based-on-easy-digital-downloads/wezido.php 85% from 13 tests

This is the main PHP file of "Wezido - Elementor Addon Based on Easy Digital Downloads" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wezido-elementor-addon-based-on-easy-digital-downloads.php" instead of "wezido.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin38,745 lines of code in 172 files:
LanguageFilesBlank linesComment linesLines of code
PHP1134,4133,05218,587
PO File203,0373,4146,180
CSS82875195,082
Sass1595334,817
JavaScript141,2994324,077
SVG2002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity20.13
▷ Minimum class complexity1.00
▷ Maximum class complexity152.00
Average method complexity5.10
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes83
▷ Abstract classes22.41%
▷ Concrete classes8197.59%
▷ Final classes00.00%
Methods387
▷ Static methods4311.11%
▷ Public methods34087.86%
▷ Protected methods4010.34%
▷ Private methods71.81%
Functions32
▷ Named functions3196.88%
▷ Anonymous functions13.12%
Constants1
▷ Global constants1100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/vendor/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%