99% woo-track-list-and-sample-player

Code Review | Woo Track list and Sample Player

WordPress plugin Woo Track list and Sample Player scored 99% from 54 tests.

About plugin

  • Plugin page: woo-track-list-an...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.3
  • WordPress version: 5.8.1
  • First release: Nov 17, 2015
  • Latest release: Jan 10, 2019
  • Number of updates: 8
  • Update frequency: every 143.6 days
  • Top authors: Dean Radish (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 2,414 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Woo Track list and Sample Player
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1430.53 ▲10.08
Dashboard /wp-admin3.07 ▲0.0246.83 ▲0.42
Posts /wp-admin/edit.php3.12 ▲0.0144.69 ▼10.07
Add New Post /wp-admin/post-new.php5.43 ▼0.0086.42 ▼565.78
Media Library /wp-admin/upload.php3.02 ▲0.0130.05 ▲1.35

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Woo Track list and Sample Player: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,719 ▲8216.13 ▲0.557.76 ▼1.7748.11 ▼9.72
Dashboard /wp-admin2,973 ▲425.90 ▼0.14128.42 ▼14.33110.71 ▼6.73
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0164.22 ▼3.4493.28 ▼2.74
Add New Post /wp-admin/post-new.php1,683 ▲1118.84 ▼0.26397.30 ▼10.86112.98 ▼5.69
Media Library /wp-admin/upload.php1,810 ▲35.01 ▼0.03149.41 ▼0.52115.70 ▼10.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt is a good inspiration

woo-track-list-and-sample-player/woo-tlasp.php 85% from 13 tests

The entry point to "Woo Track list and Sample Player" version 1.0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 162 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-track-list-and-sample-player.php" instead of "woo-tlasp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin120 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2234876
CSS13044

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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