89% download-plugins-dashboard

Code Review | Download Plugins and Themes from Dashboard

WordPress plugin Download Plugins and Themes from Dashboard scored89%from 54 tests.

About plugin

  • Plugin page: download-plugins-...
  • Plugin version: 1.8.5
  • PHP compatiblity: 5.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.3
  • WordPress version: 6.3.1
  • First release: Oct 1, 2016
  • Latest release: Sep 25, 2023
  • Number of updates: 55
  • Update frequency: every 46.4 days
  • Top authors: algoritmika (90.91%)wpcodefactory (10.91%)

Code review

54 tests

User reviews

24 reviews

Install metrics

30,000+ active /437,138 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.50ms] Passed 4 tests

This is a short check of server-side resources used by Download Plugins and Themes from Dashboard
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0347.91 ▲8.77
Dashboard /wp-admin3.34 ▼0.0149.18 ▼10.62
Posts /wp-admin/edit.php3.45 ▲0.0944.53 ▲2.74
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.53 ▼4.89
Media Library /wp-admin/upload.php3.26 ▲0.0333.50 ▼1.23
Download Plugins and Themes /wp-admin/options-general.php?page=download-plugins-dashboard3.2435.26

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Download Plugins and Themes from Dashboard
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲1214.43 ▲0.041.63 ▼0.2542.06 ▲6.09
Dashboard /wp-admin2,207 ▲275.58 ▼0.0894.42 ▲2.3943.45 ▲2.86
Posts /wp-admin/edit.php2,109 ▲92.05 ▲0.0335.94 ▲0.2733.71 ▼1.22
Add New Post /wp-admin/post-new.php1,534 ▲823.81 ▲0.24691.54 ▼34.7146.78 ▼8.48
Media Library /wp-admin/upload.php1,406 ▲94.19 ▲0.05107.41 ▼17.1044.25 ▼3.26
Download Plugins and Themes /wp-admin/options-general.php?page=download-plugins-dashboard1,1772.0322.6436.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Plugin "Download ZIP" links in "Plugins > Installed Plugins".), #2 (Theme "Download ZIP" links in "Appearance > Themes".), #3 (Settings.)
Please take inspiration from this readme.txt

download-plugins-dashboard/download-plugins-from-dashboard.php 92% from 13 tests

The main PHP file in "Download Plugins and Themes from Dashboard" ver. 1.8.5 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("download-plugins-dashboard.php" instead of "download-plugins-from-dashboard.php")

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 detected854 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP481431847
JavaScript2187

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity51.00
▷ Minimum class complexity5.00
▷ Maximum class complexity107.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods47
▷ Static methods12.13%
▷ Public methods47100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin