Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼0.19ms] Passed 4 tests
Server-side resources used by Pricimizer: Dynamic pricing for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 44.79 ▲2.03 |
Dashboard /wp-admin | 3.52 ▲0.21 | 53.91 ▲0.53 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 63.21 ▲10.97 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 101.12 ▼8.33 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 41.32 ▲5.02 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 26 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_pricimizer_price_sessions |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Pricimizer: Dynamic pricing for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲78 | 14.76 ▲0.14 | 2.15 ▲0.44 | 43.86 ▲1.43 |
Dashboard /wp-admin | 2,248 ▲71 | 4.95 ▼0.75 | 98.37 ▲4.00 | 44.71 ▲3.12 |
Posts /wp-admin/edit.php | 2,150 ▲47 | 2.49 ▲0.52 | 54.06 ▲13.72 | 45.20 ▲10.52 |
Add New Post /wp-admin/post-new.php | 1,566 ▲40 | 23.30 ▲5.79 | 667.39 ▲13.37 | 55.68 ▲1.04 |
Media Library /wp-admin/upload.php | 1,450 ▲50 | 4.53 ▲0.34 | 116.91 ▲11.52 | 48.18 ▲1.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 1 table in the database
- wp_pricimizer_price_sessions
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/price-optimizer/admin/templates/global_settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/price-optimizer/admin/templates/product_settings.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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: No descriptions were found for these screenshots #1, #2, #3 in price-optimizer/assets to your readme.txt
price-optimizer/pricimizer.php 85% from 13 tests
"Pricimizer: Dynamic pricing for WooCommerce" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("price-optimizer.php" instead of "pricimizer.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,118 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 170 | 206 | 1,012 |
SVG | 1 | 0 | 0 | 655 |
CSS | 4 | 41 | 12 | 331 |
JavaScript | 4 | 11 | 3 | 95 |
JSON | 1 | 0 | 0 | 16 |
Markdown | 1 | 3 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 47.67 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 4.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 8 | 22.22% |
▷ Public methods | 26 | 72.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 27.78% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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 files were detected