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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼8.15ms] Passed 4 tests
An overview of server-side resources used by Dynamic Step Pricing
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 35.64 ▼8.99 |
Dashboard /wp-admin | 3.36 ▲0.05 | 43.77 ▼8.97 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 47.97 ▲0.45 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 78.69 ▼15.10 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 32.33 ▲1.33 |
Dynamic Step Pricing /wp-admin/options-general.php?page=dynamic-step-pricing-admin | 3.24 | 28.44 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Dynamic Step Pricing
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 14.47 ▼0.20 | 2.04 ▲0.23 | 37.57 ▼5.67 |
Dashboard /wp-admin | 2,210 ▲19 | 4.86 ▼0.07 | 112.30 ▼3.17 | 43.36 ▼3.92 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.05 | 42.10 ▲3.72 | 34.85 ▲2.59 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.71 ▼5.55 | 672.77 ▲14.17 | 58.99 ▲8.32 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▼0.11 | 100.37 ▲5.68 | 40.01 ▼2.76 |
Dynamic Step Pricing /wp-admin/options-general.php?page=dynamic-step-pricing-admin | 783 | 2.03 | 26.54 | 32.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
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)
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
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (The main plugin interface.), #2 (Regenerating in progress.), #3 (Interface for regenerating a single attachment.), #4 (Individual images can be regenerated from the media library in list view.), #5 (They can also be regenerated from the edit attachment screen.)
dynamic-step-pricing/dynamic-step-pricing.php Passed 13 tests
The principal PHP file in "Dynamic Step Pricing" v. 0.0.1 is loaded by WordPress automatically on each request
59 characters long description:
dynamic variable products with step pricing for woocommerce
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 plugin319 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 46 | 36 | 228 |
JavaScript | 1 | 15 | 18 | 68 |
Markdown | 1 | 9 | 0 | 23 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin