89% edd-omnidesk-support

Code Review | Easy Digital Downloads - Omnidesk Support

WordPress plugin Easy Digital Downloads - Omnidesk Support scored89%from 54 tests.

About plugin

  • Plugin page: edd-omnidesk-support
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.4
  • WordPress version: 6.3.1
  • First release: May 16, 2018
  • Latest release: Jun 3, 2020
  • Number of updates: 22
  • Update frequency: every 34.1 days
  • Top authors: aleksandrx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /721 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.20ms] Passed 4 tests

Server-side resources used by Easy Digital Downloads - Omnidesk Support
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0546.32 ▲4.99
Dashboard /wp-admin3.35 ▲0.0153.11 ▼18.49
Posts /wp-admin/edit.php3.40 ▲0.0555.62 ▲5.28
Add New Post /wp-admin/post-new.php5.93 ▲0.0591.35 ▼11.92
Media Library /wp-admin/upload.php3.28 ▲0.0538.78 ▲0.63

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

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

Browser metrics Passed 4 tests

Easy Digital Downloads - Omnidesk Support: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.25 ▼0.101.72 ▼0.1243.11 ▼4.76
Dashboard /wp-admin2,201 ▲215.50 ▼0.1485.01 ▼8.4542.17 ▲2.23
Posts /wp-admin/edit.php2,106 ▲61.97 ▼0.0234.83 ▼6.0732.77 ▼5.15
Add New Post /wp-admin/post-new.php1,534 ▼223.27 ▲5.17713.75 ▲99.8854.78 ▼28.55
Media Library /wp-admin/upload.php1,406 ▲94.18 ▼0.0298.15 ▼3.8149.14 ▲5.97

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

edd-omnidesk-support/edd-omnidesk.php 85% from 13 tests

The entry point to "Easy Digital Downloads - Omnidesk Support" version 1.3.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 162 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("edd-omnidesk-support.php" instead of "edd-omnidesk.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected331 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP493186331

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity16.00
▷ Minimum class complexity5.00
▷ Maximum class complexity25.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods1155.00%
▷ Public methods1785.00%
▷ Protected methods15.00%
▷ Private methods210.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin