88% parallelize-downloads

Code Review | Parallelize Downloads

WordPress plugin Parallelize Downloads scored 88% from 54 tests.

About plugin

  • Plugin page: parallelize-downl...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.2
  • WordPress version: 5.8.1
  • First release: Feb 20, 2017
  • Latest release: Feb 20, 2017
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: enshrined (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active / 3,394 total downloads

Benchmarks

Plugin footprint Passed 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: ▲0.06MB] [CPU: ▼167.62ms] Passed 4 tests

An overview of server-side resources used by Parallelize Downloads
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0633.15 ▼1.03
Dashboard /wp-admin3.12 ▲0.0753.71 ▲6.92
Posts /wp-admin/edit.php3.23 ▲0.1347.88 ▲0.62
Add New Post /wp-admin/post-new.php5.48 ▲0.0589.08 ▼671.29
Media Library /wp-admin/upload.php3.07 ▲0.0631.61 ▲1.21
Parallelize Downloads /wp-admin/options-general.php?page=parallelize_downloads3.0628.43

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Parallelize Downloads
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,688 ▲11616.00 ▲0.2810.19 ▼1.3147.58 ▲0.06
Dashboard /wp-admin2,976 ▲455.96 ▼0.02143.67 ▼7.00100.61 ▼4.31
Posts /wp-admin/edit.php2,748 ▲92.72 ▼0.0064.43 ▼3.9386.95 ▼9.37
Add New Post /wp-admin/post-new.php1,679 ▲6418.90 ▼2.38397.15 ▲90.68112.08 ▲9.82
Media Library /wp-admin/upload.php1,757 ▼534.99 ▼0.05206.20 ▲60.11116.37 ▲4.45
Parallelize Downloads /wp-admin/options-general.php?page=parallelize_downloads1,1112.0952.1294.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 50% from 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 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/parallelize-downloads/public/partials/enshrined-parallelize-downloads-public-display.php
    • > /wp-content/plugins/parallelize-downloads/admin/partials/enshrined-parallelize-downloads-admin-header.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/parallelize-downloads/admin/partials/enshrined-parallelize-downloads-admin-form.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/parallelize-downloads/admin/partials/enshrined-parallelize-downloads-admin-main.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/parallelize-downloads/admin/partials/enshrined-parallelize-downloads-admin-footer.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === parallelize-downloads === )
You can take inspiration from this readme.txt

parallelize-downloads/enshrined-parallelize-downloads.php 85% from 13 tests

The main file in "Parallelize Downloads" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("parallelize-downloads.php" instead of "enshrined-parallelize-downloads.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin307 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP15149617260
CSS29841
JavaScript24546

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.23
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods31
▷ Static methods26.45%
▷ Public methods2477.42%
▷ Protected methods00.00%
▷ Private methods722.58%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/logo.png5.47KB3.16KB▼ 42.16%