89% ach-update-woo-download-links

Code Review | ACh Update Woo Download Links

WordPress plugin ACh Update Woo Download Links scored89%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-6.1
  • WordPress version: 6.3.1
  • First release: Apr 26, 2021
  • Latest release: Nov 3, 2022
  • Number of updates: 14
  • Update frequency: every 39.7 days
  • Top authors: ach1992 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /984 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.69ms] Passed 4 tests

Analyzing server-side resources used by ACh Update Woo Download Links
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.92 ▼4.04
Dashboard /wp-admin3.32 ▲0.0243.26 ▼4.80
Posts /wp-admin/edit.php3.38 ▲0.0246.05 ▲0.18
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.09 ▼14.08
Media Library /wp-admin/upload.php3.25 ▲0.0233.94 ▲0.51

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_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by ACh Update Woo Download Links
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.62 ▼0.761.78 ▼0.0039.01 ▼6.41
Dashboard /wp-admin2,203 ▲325.90 ▲0.01110.20 ▲7.1945.81 ▼8.50
Posts /wp-admin/edit.php2,086 ▼32.04 ▼0.0033.50 ▼7.9734.16 ▼2.43
Add New Post /wp-admin/post-new.php1,533 ▼222.98 ▼0.05658.98 ▼22.1658.75 ▲6.38
Media Library /wp-admin/upload.php1,385 ▼04.20 ▼0.0498.25 ▼0.3141.97 ▼0.45

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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)
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: download links, woocommerce, update links

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

The main PHP file in "ACh Update Woo Download Links" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist
  • Description: The description should be 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 glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin69 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1194469

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin