Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.29ms] Passed 4 tests
An overview of server-side resources used by Doorhub
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 45.69 ▼2.91 |
Dashboard /wp-admin | 3.33 ▼0.01 | 50.71 ▼19.55 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 51.82 ▲2.40 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 96.14 ▼5.10 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.95 ▲2.91 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Doorhub
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.68 ▲0.33 | 1.74 ▼0.07 | 43.76 ▲1.51 |
Dashboard /wp-admin | 2,192 ▲18 | 5.52 ▼0.13 | 85.86 ▼15.37 | 35.03 ▼8.67 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.98 ▼0.03 | 35.80 ▲0.01 | 37.25 ▲1.91 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.11 ▼0.61 | 664.06 ▼33.42 | 60.12 ▲4.23 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.22 ▲0.06 | 95.78 ▼11.95 | 40.51 ▼7.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- 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
The smoke test was a success, however most plugin functionality was not tested
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 fix the following items
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/doorhub/public/class-wc-doorhub-shipping-sameday.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/doorhub/public/class-wc-doorhub-shipping.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/doorhub/public/partials/wc-doorhub-public-display.php:9
- > PHP Fatal error
Uncaught Error: Call to a member function get_meta() on null in wp-content/plugins/doorhub/admin/partials/order-doorhub-metabox.php:5
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/doorhub/public/class-wc-doorhub-shipping-quick-commerce.php:4
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/doorhub/public/class-wc-doorhub-shipping-on-demand.php:4
- > PHP Notice
Undefined variable: order in wp-content/plugins/doorhub/admin/partials/order-doorhub-metabox.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: shipping, woocommerce, ecommerce
doorhub/wc-doorhub.php 85% from 13 tests
The main PHP script in "Doorhub" version 2.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("doorhub.php" instead of "wc-doorhub.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
Everything looks great! No dangerous files found in this plugin1,356 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 389 | 961 | 1,239 |
JavaScript | 3 | 20 | 14 | 73 |
Markdown | 1 | 13 | 0 | 30 |
CSS | 2 | 2 | 0 | 14 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 9.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 4 | 5.97% |
▷ Public methods | 58 | 86.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 13.43% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.42MB with 0.24MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 56.78KB | 25.54KB | ▼ 55.02% |
assets/screenshot-4.png | 56.78KB | 25.54KB | ▼ 55.02% |
assets/screenshot-1.png | 176.24KB | 72.16KB | ▼ 59.06% |
assets/screenshot-2.png | 138.72KB | 59.64KB | ▼ 57.01% |