90% wp-anything-downloader

Code Review | WP Anything Downloader

WordPress plugin WP Anything Downloader scored90%from 54 tests.

About plugin

  • Plugin page: wp-anything-downl...
  • Plugin version: 3.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.9.2
  • WordPress version: 6.3.1
  • First release: Nov 21, 2018
  • Latest release: Mar 22, 2022
  • Number of updates: 20
  • Update frequency: every 61.2 days
  • Top authors: vinit sharma (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

4,000+ active /29,199 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by WP Anything Downloader
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.71 ▼4.96
Dashboard /wp-admin3.33 ▼0.0245.84 ▼8.00
Posts /wp-admin/edit.php3.38 ▲0.0243.00 ▲0.48
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.79 ▼24.54
Media Library /wp-admin/upload.php3.25 ▲0.0234.84 ▲4.07

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

WP Anything Downloader: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.24 ▼0.141.77 ▲0.0544.09 ▲0.80
Dashboard /wp-admin2,192 ▲185.65 ▲0.1285.96 ▲1.0038.59 ▲2.13
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0533.85 ▼12.0231.67 ▼7.60
Add New Post /wp-admin/post-new.php1,526 ▼023.34 ▼0.04642.34 ▲34.2954.80 ▲0.49
Media Library /wp-admin/upload.php1,403 ▼04.21 ▲0.0396.49 ▼5.1040.71 ▼4.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: theme downloader plugin downloader, direct download, wordpress theme and plugin download

wp-anything-downloader/wp-anything-downloader.php 92% from 13 tests

Analyzing the main PHP file in "WP Anything Downloader" version 3.0.2
Please take the time to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.3" instead of "3.5")

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
There were no executable files found in this plugin115 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13169115

PHP code Passed 2 tests

A brief analysis 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.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin