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
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼6.71ms] Passed 4 tests
Server-side resources used by WC Call For Price
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 40.65 ▼5.39 |
Dashboard /wp-admin | 3.43 ▲0.13 | 48.53 ▼1.99 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 48.90 ▼2.89 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 87.17 ▼16.58 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.24 ▲2.14 |
Call For Price /wp-admin/admin.php?page=wc-call-for-price | 3.36 | 37.90 |
Server storage [IO: ▲0.22MB] [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: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
WC Call For Price: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.19 ▼1.16 | 1.61 ▼0.24 | 41.74 ▼0.34 |
Dashboard /wp-admin | 2,203 ▲18 | 5.83 ▲0.88 | 99.52 ▼17.56 | 38.71 ▼7.16 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▼0.05 | 33.88 ▼3.16 | 31.95 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.34 ▲5.80 | 623.98 ▼3.61 | 55.74 ▼0.54 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.21 ▼0.04 | 96.09 ▼3.57 | 43.12 ▲0.71 |
Call For Price /wp-admin/admin.php?page=wc-call-for-price | 1,055 | 3.12 | 42.69 | 41.23 |
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_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wc-call-for-price/templates/admin/pages/404.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #5, #6, #7 in wc-call-for-price/assets to your readme.txt
wc-call-for-price/wc-call-for-price.php Passed 13 tests
"WC Call For Price" version 1.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
103 characters long description:
This plugin shows "call for price" text/HTML or image on empty price fields. It depends on woocommerce.
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
Good job! No executable or dangerous file extensions detected1,527 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 302 | 805 | 1,343 |
CSS | 1 | 1 | 0 | 91 |
JavaScript | 1 | 16 | 58 | 88 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 11.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 71 | |
▷ Static methods | 20 | 28.17% |
▷ Public methods | 61 | 85.92% |
▷ Protected methods | 6 | 8.45% |
▷ Private methods | 4 | 5.63% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
Constants | 33 | |
▷ Global constants | 4 | 12.12% |
▷ Class constants | 29 | 87.88% |
▷ Public constants | 29 | 100.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
18 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/preset-buttons/cfp_1.png | 4.50KB | 1.58KB | ▼ 64.90% |
assets/images/preset-buttons/cfp_7.png | 7.71KB | 3.32KB | ▼ 56.97% |
assets/images/preset-buttons/unselected.png | 3.27KB | 0.49KB | ▼ 85.02% |
assets/images/preset-buttons/cfp_15.png | 6.16KB | 2.46KB | ▼ 60.02% |
assets/images/preset-buttons/close.png | 0.22KB | 0.20KB | ▼ 9.13% |