99% ach-update-woo-download-links

Code Review | ACh Update Woo Download Links

WordPress plugin ACh Update Woo Download Links scored 99% from 54 tests.

About plugin

  • Plugin page: ach-update-woo-do...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 5.8.1
  • First release: Apr 26, 2021
  • Latest release: Jan 27, 2022
  • Number of updates: 13
  • Update frequency: every 21.2 days
  • Top authors: ach1992 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 385 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by ACh Update Woo Download Links
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0224.62 ▼8.32
Dashboard /wp-admin3.08 ▲0.0132.73 ▼7.19
Posts /wp-admin/edit.php3.14 ▲0.0232.90 ▼0.30
Add New Post /wp-admin/post-new.php5.45 ▲0.0070.64 ▼597.34
Media Library /wp-admin/upload.php3.03 ▲0.0226.35 ▲1.71

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACh Update Woo Download Links
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,676 ▲2515.70 ▲0.045.95 ▼1.8175.48 ▼21.45
Dashboard /wp-admin2,930 ▲346.11 ▼0.04111.98 ▼19.88171.27 ▼3.14
Posts /wp-admin/edit.php2,743 ▲33.24 ▼0.0065.99 ▼0.42133.25 ▼7.65
Add New Post /wp-admin/post-new.php3,807 ▲7718.54 ▲3.14431.99 ▲9.77158.49 ▼6.41
Media Library /wp-admin/upload.php1,749 ▼35.49 ▲0.01165.15 ▲19.94187.89 ▲6.93

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
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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

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)
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 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
3 plugin tags: woocommerce, download links, update links

ach-update-woo-download-links/ACh-update-woo-dl-links.php 69% from 13 tests

"ACh Update Woo Download Links" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages/")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: Keep the plugin description shorter than 140 characters (currently 232 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ach-update-woo-download-links.php" instead of "ACh-update-woo-dl-links.php")

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 plugin69 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1194469

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.71
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity6.00
▷ Minimum method complexity2.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods266.67%
▷ Protected methods00.00%
▷ Private methods133.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin