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
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼297.73ms] Passed 4 tests
Server-side resources used by Advanced Woo Labels - Product Labels for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.03 | 60.32 ▲2.38 |
Dashboard /wp-admin | 3.44 ▲0.03 | 37.11 ▲0.51 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 41.37 ▼6.51 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 97.38 ▼1,185.63 |
Media Library /wp-admin/upload.php | 3.32 ▲0.03 | 26.20 ▲0.72 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 74 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Woo Labels - Product Labels for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,773 ▲19 | 15.97 ▼0.15 | 6.94 ▼0.84 | 2.25 ▼0.38 |
Dashboard /wp-admin | 2,905 ▲44 | 6.16 ▼0.06 | 116.21 ▼13.51 | 154.69 ▼16.27 |
Posts /wp-admin/edit.php | 2,698 ▲10 | 3.23 ▼0.01 | 65.64 ▼2.54 | 138.31 ▼15.30 |
Add New Post /wp-admin/post-new.php | 1,696 ▼21 | 21.64 ▲0.53 | 420.24 ▲11.59 | 166.46 ▲10.54 |
Media Library /wp-admin/upload.php | 1,705 ▲7 | 5.49 ▼0.02 | 150.97 ▲6.00 | 195.70 ▲15.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
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 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
advanced-woo-labels/advanced-woo-labels.php 92% from 13 tests
The entry point to "Advanced Woo Labels - Product Labels for WooCommerce" version 1.41 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "3.0.0")
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
There were no executable files found in this plugin7,783 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 2,120 | 1,602 | 5,223 |
CSS | 2 | 238 | 44 | 1,297 |
JavaScript | 4 | 220 | 46 | 763 |
PO File | 1 | 233 | 4 | 497 |
SVG | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 26.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 35 | 100.00% |
▷ Final classes | 1 | 2.86% |
Methods | 305 | |
▷ Static methods | 75 | 24.59% |
▷ Public methods | 245 | 80.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 60 | 19.67% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
25 compressed PNG files occupy 0.37MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/pro/user-cond-pro.png | 17.07KB | 17.05KB | 0.13% |
assets/img/pro/feature-styles-pro.png | 16.60KB | 17.35KB | 0.00% |
assets/img/pro/feature-acf-pro.png | 20.96KB | 22.21KB | 0.00% |
assets/img/pro/pro-feature-acf.png | 18.93KB | 19.78KB | 0.00% |
assets/img/label-3.png | 0.38KB | 0.39KB | 0.00% |