Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.39ms] Passed 4 tests
A check of server-side resources used by DropStream - Automated eCommerce Fulfillment
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.29 ▲3.08 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.39 ▼2.01 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.14 ▲1.07 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.45 ▼4.55 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.47 ▼0.07 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
DropStream - Automated eCommerce Fulfillment: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.25 ▼0.96 | 1.68 ▼0.12 | 47.37 ▲8.82 |
Dashboard /wp-admin | 2,206 ▲18 | 5.79 ▲0.92 | 101.86 ▼3.30 | 39.80 ▼2.47 |
Posts /wp-admin/edit.php | 2,089 ▲21 | 2.00 ▼0.02 | 36.47 ▲2.02 | 35.32 ▲0.96 |
Add New Post /wp-admin/post-new.php | 1,520 ▼22 | 23.48 ▲0.16 | 629.62 ▼43.86 | 49.60 ▲0.82 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▼0.01 | 96.41 ▲0.11 | 40.68 ▼2.69 |
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
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-dropstream/inc/adapters/wp_e_commerce.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'WP_PLUGIN_DIR/wp-e-commerce/wpsc-core/wpsc-constants.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-dropstream/inc/adapters/wp_e_commerce.php on line 4
- > PHP Warning
require_once(WP_PLUGIN_DIR/wp-e-commerce/wpsc-core/wpsc-constants.php): failed to open stream: No such file or directory in wp-content/plugins/wp-dropstream/inc/adapters/wp_e_commerce.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dropstream/wp-dropstream.php:207
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser 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:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Support multiple sales channels including Amazon Marketplace, and eBay), #2 (Paid orders are automatically sent to your fulfillment center), #3 (Orders are accurate every time), #4 (Tracking numbers are automatically sent back to your shopping cart)
wp-dropstream/wp-dropstream.php Passed 13 tests
The main file in "DropStream - Automated eCommerce Fulfillment" v. 1.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
A brief description of the Plugin.
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
No dangerous file extensions were detected458 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 130 | 25 | 458 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 7 | 23.33% |
▷ Public methods | 22 | 73.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 26.67% |
Functions | 7 | |
▷ Named functions | 7 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.70MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 21.70KB | 9.07KB | ▼ 58.21% |
screenshot-1.png | 136.88KB | 34.68KB | ▼ 74.67% |
screenshot-2.png | 146.89KB | 48.04KB | ▼ 67.30% |
screenshot-4.png | 242.00KB | 85.83KB | ▼ 64.53% |
screenshot-3.png | 168.23KB | 52.56KB | ▼ 68.76% |