Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.61ms] Passed 4 tests
An overview of server-side resources used by WPC Price by Quantity for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 35.10 ▼4.10 |
Dashboard /wp-admin | 3.39 ▲0.05 | 48.50 ▼17.31 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 50.39 ▲2.22 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 88.43 ▼11.23 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 44.89 ▲13.60 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 3.50 | 31.50 |
About /wp-admin/admin.php?page=wpclever | 3.28 | 33.63 |
Server storage [IO: ▲0.19MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WPC Price by Quantity for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲120 | 14.30 ▼0.41 | 1.53 ▼0.12 | 37.96 ▼7.76 |
Dashboard /wp-admin | 2,272 ▲92 | 5.53 ▼0.11 | 92.55 ▼6.93 | 75.17 ▲29.40 |
Posts /wp-admin/edit.php | 2,178 ▲78 | 2.01 ▲0.04 | 37.79 ▼1.23 | 34.11 ▼0.03 |
Add New Post /wp-admin/post-new.php | 1,753 ▲227 | 22.07 ▼1.07 | 754.60 ▲137.53 | 53.06 ▲3.77 |
Media Library /wp-admin/upload.php | 1,474 ▲74 | 4.13 ▼0.04 | 99.48 ▲4.91 | 67.86 ▲26.42 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 5,744 | 2.16 | 37.06 | 61.19 |
About /wp-admin/admin.php?page=wpclever | 1,399 | 2.23 | 32.33 | 32.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpc-price-by-quantity/wpc-price-by-quantity.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #2 in wpc-price-by-quantity/assets to your readme.txt
wpc-price-by-quantity/wpc-price-by-quantity.php 92% from 13 tests
The principal PHP file in "WPC Price by Quantity for WooCommerce" v. 4.1.4 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 288 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin4,114 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 259 | 46 | 1,592 |
CSS | 5 | 285 | 150 | 1,379 |
JavaScript | 4 | 95 | 22 | 510 |
Sass | 2 | 79 | 0 | 495 |
PO File | 1 | 36 | 39 | 109 |
SVG | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 27.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 4.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 17 | 27.42% |
▷ Public methods | 60 | 96.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.23% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 10 | |
▷ Global constants | 10 | 100.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
PNG images were not found in this plugin