90% edd-hide-download

Code Review | EDD Hide Download

WordPress plugin EDD Hide Download scored90%from 54 tests.

About plugin

  • Plugin page: edd-hide-download
  • Plugin version: 1.2.11.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Jul 28, 2013
  • Latest release: Nov 10, 2022
  • Number of updates: 34
  • Update frequency: every 99.8 days
  • Top authors: sumobi (79.41%)cklosows (14.71%)NoseGraze (8.82%)mordauk (5.88%)

Code review

54 tests

User reviews

7 reviews

Install metrics

900+ active /20,936 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.01MB] [CPU: ▼4.41ms] Passed 4 tests

Server-side resources used by EDD Hide Download
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.21 ▼3.31
Dashboard /wp-admin3.31 ▲0.0151.59 ▼0.34
Posts /wp-admin/edit.php3.43 ▲0.0750.33 ▲1.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.65 ▼14.79
Media Library /wp-admin/upload.php3.24 ▲0.0137.73 ▲0.81

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by EDD Hide Download
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.35 ▼0.001.76 ▼0.2843.36 ▼3.29
Dashboard /wp-admin2,198 ▲245.57 ▼0.0986.77 ▼18.4937.66 ▼8.38
Posts /wp-admin/edit.php2,103 ▲32.00 ▲0.0434.37 ▼2.6733.24 ▼4.29
Add New Post /wp-admin/post-new.php1,529 ▲123.60 ▲0.59690.16 ▲24.8254.53 ▼15.45
Media Library /wp-admin/upload.php1,403 ▼04.14 ▼0.04103.92 ▼2.8344.52 ▼7.79

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: landing page, ecommerce, hide product, easy digital downloads, purchase funnel

edd-hide-download/edd-hide-download.php 92% from 13 tests

This is the main PHP file of "EDD Hide Download" version 1.2.11.1, 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:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin1,047 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP12320523939
Markdown113056
JSON20052

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity19.86
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods67
▷ Static methods1826.87%
▷ Public methods5683.58%
▷ Protected methods00.00%
▷ Private methods1116.42%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
There are no PNG files in this plugin