90% quick-download

Code Review | Quick Download - Themes and Plugins from WP Dashboard

WordPress plugin Quick Download - Themes and Plugins from WP Dashboard scored90%from 54 tests.

About plugin

  • Plugin page: quick-download
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 26, 2022
  • Latest release: May 26, 2022
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: stalukder03 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /322 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.60ms] Passed 4 tests

A check of server-side resources used by Quick Download - Themes and Plugins from WP Dashboard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.75 ▼10.22
Dashboard /wp-admin3.33 ▼0.0148.50 ▼11.94
Posts /wp-admin/edit.php3.38 ▲0.0362.96 ▲15.29
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.68 ▼15.12
Media Library /wp-admin/upload.php3.25 ▲0.0340.91 ▲2.89

Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 8 new options
New WordPress options
quick_download_installed
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
quick_download_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for Quick Download - Themes and Plugins from WP Dashboard
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.37 ▼0.261.95 ▲0.1942.27 ▼1.06
Dashboard /wp-admin2,195 ▲185.64 ▲0.0891.04 ▼1.7144.26 ▼1.49
Posts /wp-admin/edit.php2,103 ▲32.05 ▲0.0240.89 ▲3.6634.74 ▼5.10
Add New Post /wp-admin/post-new.php1,545 ▼023.16 ▼0.10622.74 ▼21.0159.28 ▲5.93
Media Library /wp-admin/upload.php1,400 ▼34.22 ▲0.0899.58 ▲0.5645.57 ▼8.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-posts
    • quick_download_installed
    • quick_download_version
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
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
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Plugin "Download ZIP" links in "Plugins > Installed Plugins".), #2 (Theme "Download ZIP" links in "Appearance > Themes".)
The official readme.txt might help

quick-download/quick-download.php Passed 13 tests

The main file in "Quick Download - Themes and Plugins from WP Dashboard" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
62 characters long description:
Download Themes and Pluigns directly from WordPress Dashboard.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected727 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP12173461694
JSON20024
JavaScript1109

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity20.00
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods56
▷ Static methods1933.93%
▷ Public methods5496.43%
▷ Protected methods00.00%
▷ Private methods23.57%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ 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
No PNG files were detected