Benchmarks
Plugin footprint 83% from 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.10MB] [CPU: ▼3.57ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Price Per Unit
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 45.66 ▲1.77 |
Dashboard /wp-admin | 3.41 ▲0.07 | 51.70 ▼21.28 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 58.35 ▲5.74 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 99.41 ▲6.95 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 37.41 ▼0.51 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Price Per Unit
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼1.38 | 6.19 ▲4.43 | 45.08 ▼4.02 |
Dashboard /wp-admin | 2,203 ▲12 | 5.88 ▲1.00 | 113.99 ▼5.18 | 44.21 ▲1.21 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.03 | 46.77 ▲4.20 | 38.53 ▲1.02 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.00 ▲5.25 | 653.26 ▼52.58 | 57.07 ▼3.61 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.12 ▼0.13 | 113.03 ▼6.95 | 50.52 ▼0.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-price-per-unit/includes/database-upgrade.php:8
- > PHP Fatal error
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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add an image for screenshot #2 (Single product settings - these settings affect only current product)
woo-price-per-unit/woo-price-per-unit.php 92% from 13 tests
The principal PHP file in "WooCommerce Price Per Unit" v. 2.0.9 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "3.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
Good job! No executable or dangerous file extensions detected1,385 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 48 | 266 | 927 |
PO File | 1 | 153 | 321 | 321 |
CSS | 3 | 0 | 0 | 86 |
JavaScript | 1 | 0 | 9 | 26 |
XML | 1 | 0 | 0 | 25 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 138.00 |
▷ Minimum class complexity | 138.00 |
▷ Maximum class complexity | 138.00 |
Average method complexity | 5.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 1 | 3.33% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG images were found in this plugin