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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼6.83ms] Passed 4 tests
This is a short check of server-side resources used by WPC Name Your Price for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 35.16 ▼3.98 |
Dashboard /wp-admin | 3.48 ▲0.13 | 44.70 ▼12.38 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 49.63 ▲1.85 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 88.97 ▼9.64 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 34.56 ▼1.32 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 3.37 | 30.49 |
About /wp-admin/admin.php?page=wpclever | 3.37 | 32.30 |
Server storage [IO: ▲0.09MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WPC Name Your Price for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲120 | 14.29 ▼0.14 | 1.61 ▼0.10 | 41.92 ▲0.04 |
Dashboard /wp-admin | 2,272 ▲95 | 5.69 ▲0.06 | 80.67 ▼6.06 | 82.49 ▲44.99 |
Posts /wp-admin/edit.php | 2,181 ▲84 | 2.00 ▼0.03 | 38.90 ▲2.47 | 34.64 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,610 ▲84 | 18.10 ▼4.88 | 742.16 ▲81.00 | 55.03 ▼11.40 |
Media Library /wp-admin/upload.php | 1,474 ▲77 | 4.24 ▲0.07 | 100.34 ▼4.86 | 76.83 ▲31.07 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 5,741 | 2.16 | 34.38 | 54.99 |
About /wp-admin/admin.php?page=wpclever | 1,378 | 2.27 | 32.72 | 30.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 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
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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 SRP test was a success
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 issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2 in wpc-name-your-price/assets to your readme.txt
wpc-name-your-price/wpc-name-your-price.php Passed 13 tests
"WPC Name Your Price for WooCommerce" version 2.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
WPC Name Your Price lets customers pay with what price they want.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,686 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 151 | 30 | 1,046 |
CSS | 4 | 81 | 6 | 430 |
JavaScript | 4 | 38 | 4 | 181 |
SVG | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 21.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 12 | 26.09% |
▷ Public methods | 46 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin