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.00MB] [CPU: ▼3.65ms] Passed 4 tests
Server-side resources used by Zendrop - Global Dropshipping
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 46.41 ▼4.61 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.06 ▼2.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.97 ▲2.62 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.52 ▼9.78 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.37 ▲1.82 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Zendrop - Global Dropshipping
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.20 ▼1.23 | 1.80 ▼0.08 | 45.90 ▲5.19 |
Dashboard /wp-admin | 2,200 ▲15 | 5.83 ▲0.96 | 99.19 ▼7.79 | 37.31 ▼3.51 |
Posts /wp-admin/edit.php | 2,086 ▼0 | 2.01 ▲0.02 | 36.21 ▼0.75 | 31.07 ▲0.84 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.69 ▼0.71 | 596.92 ▼60.54 | 69.75 ▼13.75 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.14 ▼0.05 | 107.98 ▲0.48 | 47.68 ▲5.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/zendrop-dropshipping-and-fulfillment/worker.php
- > /wp-content/plugins/zendrop-dropshipping-and-fulfillment/connectorMain.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7, #8 in zendrop-dropshipping-and-fulfillment/assets to your readme.txt
zendrop-dropshipping-and-fulfillment/connectorMain.php 92% from 13 tests
"Zendrop - Global Dropshipping" version 1.0.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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zendrop-dropshipping-and-fulfillment.php" instead of "connectorMain.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,517 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 518 | 584 | 2,205 |
CSS | 1 | 23 | 0 | 192 |
JavaScript | 1 | 20 | 0 | 120 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 17.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 1 | 5.00% |
▷ Concrete classes | 19 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 119 | |
▷ Static methods | 6 | 5.04% |
▷ Public methods | 72 | 60.50% |
▷ Protected methods | 26 | 21.85% |
▷ Private methods | 21 | 17.65% |
Functions | 22 | |
▷ Named functions | 13 | 59.09% |
▷ Anonymous functions | 9 | 40.91% |
Constants | 17 | |
▷ Global constants | 9 | 52.94% |
▷ Class constants | 8 | 47.06% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.38MB with 0.23MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 391.44KB | 156.62KB | ▼ 59.99% |