Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.31ms] Passed 4 tests
This is a short check of server-side resources used by Drop / Raise Price for WooCommerce (over time)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.67 ▼0.60 |
Dashboard /wp-admin | 3.31 ▼0.04 | 40.69 ▼17.46 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.24 ▲2.42 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 76.24 ▼10.64 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.86 ▼0.54 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Drop / Raise Price for WooCommerce (over time)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.35 ▼0.00 | 1.71 ▲0.15 | 43.69 ▲4.42 |
Dashboard /wp-admin | 2,198 ▲18 | 5.59 ▼0.03 | 92.79 ▲4.12 | 42.08 ▲1.65 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▲0.05 | 40.78 ▲3.31 | 35.20 ▼0.35 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.04 ▼0.33 | 653.53 ▼10.17 | 48.57 ▼21.31 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▲0.03 | 96.04 ▲1.46 | 41.63 ▼4.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: woocommerce raise price, drop price, drop raise price, raise price, woocommerce...
drop-prices-for-woocommerce/woocommerce-drop-prices.php 85% from 13 tests
The principal PHP file in "Drop / Raise Price for WooCommerce (over time)" v. 1.2 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("drop-prices-for-woocommerce.php" instead of "woocommerce-drop-prices.php")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,138 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 246 | 447 | 2,344 |
PHP | 1 | 139 | 164 | 692 |
CSS | 2 | 3 | 2 | 102 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 151.00 |
▷ Minimum class complexity | 151.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 8.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 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 | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin