Benchmarks
Plugin footprint 83% from 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.00MB] [CPU: ▼6.20ms] Passed 4 tests
A check of server-side resources used by Woocommerce Global Price Options
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.57 ▼2.73 |
Dashboard /wp-admin | 3.31 ▲0.00 | 41.51 ▼7.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.14 ▼0.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.32 ▼14.08 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.53 ▼0.97 |
Server storage [IO: ▲1.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Woocommerce Global Price Options: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼1.37 | 1.73 ▼0.01 | 39.99 ▼6.62 |
Dashboard /wp-admin | 2,206 ▲15 | 5.87 ▼0.04 | 108.05 ▲3.81 | 41.78 ▼3.66 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.18 ▲0.14 | 41.71 ▲6.10 | 40.32 ▲2.93 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.67 ▼0.64 | 627.36 ▼18.86 | 48.46 ▼9.03 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.25 ▲0.06 | 106.60 ▲5.90 | 45.73 ▲4.06 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 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 50% 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 take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/atr-woo-global-price-options/public/partials/atr-woo-global-price-options-public-display.php
- > /wp-content/plugins/atr-woo-global-price-options/admin/partials/atr-woo-global-price-options-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
6 plugin tags: price options, photography, woocommerce, product options, global prices...
atr-woo-global-price-options/atr-woo-global-price-options.php 92% from 13 tests
The main PHP file in "Woocommerce Global Price Options" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.4.14" instead of "2.6.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,616 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 253 | 710 | 1,117 |
PO File | 1 | 90 | 7,549 | 271 |
JavaScript | 2 | 28 | 36 | 117 |
CSS | 2 | 5 | 9 | 111 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 20.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 2 | 2.94% |
▷ Public methods | 58 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 14.71% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/css/remove_option.png | 1.10KB | 1.31KB | 0.00% |
public/css/add_option.png | 1.63KB | 1.45KB | ▼ 10.90% |