Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.34ms] Passed 4 tests
An overview of server-side resources used by Weight Based Pricing for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.46 ▲1.61 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.72 ▲0.07 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.59 ▼3.85 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.08 ▼19.20 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.61 ▲1.90 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Weight Based Pricing for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.39 ▼0.20 | 1.65 ▲0.06 | 43.76 ▲5.79 |
Dashboard /wp-admin | 2,195 ▲14 | 5.52 ▼0.16 | 89.10 ▼17.31 | 37.64 ▼4.46 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.01 ▲0.01 | 32.93 ▼5.66 | 34.59 ▲1.37 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 22.98 ▼0.13 | 669.76 ▲53.96 | 59.95 ▲3.78 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.09 ▼0.09 | 106.65 ▲1.29 | 45.07 ▲2.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: weight, weight based shipping, woocommerce, unit, pricing...
weight-based-pricing-for-woocommerce/weight-based-pricing-woocommerce.php 85% from 13 tests
The main PHP script in "Weight Based Pricing for WooCommerce" version 1.1.5 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("weight-based-pricing-for-woocommerce.php" instead of "weight-based-pricing-woocommerce.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 plugin2,223 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 377 | 396 | 1,890 |
JavaScript | 2 | 82 | 67 | 251 |
CSS | 2 | 16 | 0 | 81 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 14.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 4.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 35 | 39.77% |
▷ Public methods | 87 | 98.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.14% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin