89% edd-hide-show-download

Code Review | EDD Hide Show Download

WordPress plugin EDD Hide Show Download scored 89% from 54 tests.

About plugin

  • Plugin page: edd-hide-show-dow...
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Aug 16, 2022
  • Latest release: Nov 1, 2022
  • Number of updates: 4
  • Update frequency: every 19.3 days
  • Top authors: t2child (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 265 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.09MB] [CPU: ▼11.81ms] Passed 4 tests

Server-side resources used by EDD Hide Show Download
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▼0.5917.12 ▼22.91
Dashboard /wp-admin3.38 ▲0.0843.14 ▼5.71
Posts /wp-admin/edit.php3.44 ▲0.0848.41 ▲3.73
Add New Post /wp-admin/post-new.php5.97 ▲0.0880.55 ▼13.82
Media Library /wp-admin/upload.php3.31 ▲0.0833.66 ▼4.80

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

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

Browser metrics Passed 4 tests

EDD Hide Show Download: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,456 ▼30114.45 ▲0.080.56 ▼1.4417.30 ▼26.10
Dashboard /wp-admin2,209 ▲215.91 ▲1.03109.94 ▲2.1945.51 ▲1.41
Posts /wp-admin/edit.php2,086 ▼02.03 ▼0.0136.53 ▲3.1529.76 ▼5.74
Add New Post /wp-admin/post-new.php1,536 ▲2222.41 ▲4.75673.03 ▼12.8660.67 ▲0.24
Media Library /wp-admin/upload.php1,388 ▲64.16 ▼0.0594.76 ▼5.1842.54 ▼3.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% 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
8 plugin tags: t2child, hidden, edd, download, easy digital downloads...

edd-hide-show-download/edd-hide-show-product.php 77% from 13 tests

"EDD Hide Show Download" version 0.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("edd-hide-show-download.php" instead of "edd-hide-show-product.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
Good job! No executable or dangerous file extensions detected352 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP267234314
JavaScript193938

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods21
▷ Static methods29.52%
▷ Public methods1885.71%
▷ Protected methods00.00%
▷ Private methods314.29%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin