79% hizzle-downloads

Code Review | Simple Download Manager - Hizzle Downloads

WordPress plugin Simple Download Manager - Hizzle Downloads scored79%from 54 tests.

About plugin

  • Plugin page: hizzle-downloads
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2
  • WordPress version: 6.3.1
  • First release: Aug 12, 2022
  • Latest release: Jul 20, 2023
  • Number of updates: 10
  • Update frequency: every 34.3 days
  • Top authors: picocodes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,167 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.03MB] [CPU: ▲3.12ms] Passed 4 tests

This is a short check of server-side resources used by Simple Download Manager - Hizzle Downloads
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.39 ▲0.9347.29 ▲5.93
Dashboard /wp-admin4.39 ▲1.0958.34 ▲12.17
Posts /wp-admin/edit.php4.44 ▲1.0951.98 ▲7.52
Add New Post /wp-admin/post-new.php7.04 ▲1.16104.25 ▼4.32
Media Library /wp-admin/upload.php4.25 ▲1.0241.72 ▲3.34
Logs /wp-admin/admin.php?page=hizzle-download-logs4.4939.88
Files /wp-admin/admin.php?page=hizzle-downloads4.4950.73

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 80 new files
Database: 3 new tables, 9 new options
New tables
wp_hizzle_log
wp_hizzle_download_logs
wp_hizzle_download_files
New WordPress options
widget_recent-posts
theysaidso_admin_options
hizzle_logger_version
widget_recent-comments
widget_theysaidso_widget
db_upgraded
hizzle_downloads_db_version
hizzle_downloads_admin_notices
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Simple Download Manager - Hizzle Downloads
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲11314.47 ▼0.182.05 ▲0.4143.32 ▲4.69
Dashboard /wp-admin2,226 ▲355.81 ▼0.0799.32 ▼0.3937.10 ▲0.40
Posts /wp-admin/edit.php2,112 ▲202.06 ▲0.0634.89 ▼3.4035.20 ▲1.53
Add New Post /wp-admin/post-new.php6,210 ▲4,67620.84 ▼2.18869.84 ▲184.8582.53 ▲21.50
Media Library /wp-admin/upload.php1,414 ▲294.16 ▼0.2497.98 ▼13.8844.58 ▼0.50
Logs /wp-admin/admin.php?page=hizzle-download-logs1,0101.8826.0328.06
Files /wp-admin/admin.php?page=hizzle-downloads1,0491.8928.9531.82

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie tables detected upon uninstall: 2 tables
    • wp_hizzle_download_logs
    • wp_hizzle_log
  • This plugin does not fully uninstall, leaving 7 options in the database
    • hizzle_logger_version
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

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
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: downloads, digital downloads, files

hizzle-downloads/hizzle-downloads.php 85% from 13 tests

"Simple Download Manager - Hizzle Downloads" version 1.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("5.6" instead of "7.0")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.9" instead of "5.5")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin8,463 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
PHP582,7095,1118,140
JavaScript43825146
JSON100108
CSS216069

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity34.00
▷ Minimum class complexity1.00
▷ Maximum class complexity230.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces7
Interfaces1
Traits0
Classes37
▷ Abstract classes25.41%
▷ Concrete classes3594.59%
▷ Final classes00.00%
Methods543
▷ Static methods7914.55%
▷ Public methods40173.85%
▷ Protected methods12623.20%
▷ Private methods162.95%
Functions30
▷ Named functions2996.67%
▷ Anonymous functions13.33%
Constants13
▷ Global constants430.77%
▷ Class constants969.23%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin