Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/woodpd/woodpd.php+207
Methods with the same name as their class will not be constructors in a future version of PHP; WooDPD_Cart has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼62.35ms] Passed 4 tests
A check of server-side resources used by WooDPD
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.90 ▼39.87 |
Dashboard /wp-admin | 2.12 ▼1.23 | 5.88 ▼62.40 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 7.45 ▼45.86 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 8.55 ▼101.27 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 6.30 ▼33.27 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WooDPD
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.32 ▼0.03 | 1.71 ▼0.34 | 43.43 ▲2.48 |
Dashboard /wp-admin | 2,192 ▲12 | 5.55 ▼0.06 | 87.10 ▲0.50 | 39.36 ▼7.58 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.01 | 35.49 ▼6.69 | 37.21 ▼0.43 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.20 ▲0.31 | 680.59 ▲11.05 | 53.78 ▲0.50 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.02 | 98.41 ▼13.41 | 40.90 ▼5.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/woodpd/woodpd.php+207
Methods with the same name as their class will not be constructors in a future version of PHP; WooDPD_Cart has a deprecated constructor
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
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 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Admin options), #2 (Product options)
- Tags: You are using too many tags: 13 tag instead of maximum 10
woodpd/woodpd.php Passed 13 tests
This is the main PHP file of "WooDPD" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
38 characters long description:
DPD cart and purchases for WooCommerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin246 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 53 | 55 | 246 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 31.04KB | 13.76KB | ▼ 55.65% |
assets/screenshot-2.png | 28.29KB | 11.76KB | ▼ 58.45% |