Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.22ms] Passed 4 tests
An overview of server-side resources used by Dynamic Pricing and Discount Rules
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.75 ▼0.15 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.58 ▼7.18 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.66 ▲4.32 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.39 ▼4.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.04 ▼0.59 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Dynamic Pricing and Discount Rules
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.27 ▼0.07 | 1.58 ▼0.15 | 36.16 ▼8.00 |
Dashboard /wp-admin | 2,195 ▲24 | 5.57 ▼0.11 | 94.83 ▼3.43 | 42.26 ▼4.97 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.95 ▼0.01 | 38.82 ▲1.58 | 35.74 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.97 ▼0.43 | 599.55 ▼88.08 | 59.19 ▲3.13 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.13 ▲0.05 | 96.58 ▼18.09 | 41.87 ▼5.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
discount-and-dynamic-pricing/discount-and-dynamic-pricing.php Passed 13 tests
"Dynamic Pricing and Discount Rules" version 2.2.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
127 characters long description:
Dynamic Pricing and Discount Rules For WooComemerce plugin let you create and manage discount rules for your products and cart.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin4,887 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 969 | 549 | 4,784 |
CSS | 3 | 11 | 0 | 63 |
SVG | 3 | 0 | 0 | 37 |
JavaScript | 2 | 1 | 5 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 33.96 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 174.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 3 | 11.11% |
▷ Concrete classes | 24 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 298 | |
▷ Static methods | 66 | 22.15% |
▷ Public methods | 205 | 68.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 93 | 31.21% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 70 | |
▷ Global constants | 8 | 11.43% |
▷ Class constants | 62 | 88.57% |
▷ Public constants | 62 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin