Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼6.82ms] Passed 4 tests
Server-side resources used by Mybox B2B
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 39.88 ▼0.39 |
Dashboard /wp-admin | 3.45 ▲0.15 | 45.58 ▼4.05 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 47.89 ▼3.93 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 83.74 ▼18.92 |
Media Library /wp-admin/upload.php | 3.38 ▲0.14 | 38.42 ▲4.32 |
Mybox XA /wp-admin/admin.php?page=mybox-settings-xa | 3.33 | 30.97 |
Mybox Settings /wp-admin/admin.php?page=mybox-settings | 3.32 | 31.38 |
Server storage [IO: ▲1.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 44 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_mybox_settings |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Mybox B2B
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲175 | 13.95 ▼0.43 | 4.59 ▲2.96 | 43.90 ▲0.99 |
Dashboard /wp-admin | 2,230 ▲42 | 5.84 ▲0.94 | 101.01 ▲0.05 | 39.57 ▼4.34 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.01 ▲0.01 | 41.00 ▼0.60 | 34.34 ▼2.62 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.06 ▼0.29 | 657.52 ▼41.04 | 52.67 ▲1.05 |
Media Library /wp-admin/upload.php | 1,415 ▲33 | 4.23 ▼0.07 | 94.40 ▼5.66 | 41.07 ▼1.35 |
Mybox XA /wp-admin/admin.php?page=mybox-settings-xa | 1,084 | 1.68 | 29.59 | 26.22 |
Mybox Settings /wp-admin/admin.php?page=mybox-settings | 828 | 2.06 | 25.06 | 26.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_mybox_settings
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=mybox-settings-xa
- > Notice in wp-content/plugins/mybox-b2b/admin/class-mybox-b2b-admin.php+321
Undefined index: resend
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mybox-settings
- > Notice in wp-content/plugins/mybox-b2b/admin/class-mybox-b2b-admin.php+457
Trying to access array offset on value of type bool
SRP 0% from 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
Please take a closer look at the following
- 7× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/mybox-b2b/public/partials/mybox-b2b-public-display.php
- > /wp-content/plugins/mybox-b2b/partials/mybox-b2b-admin-display.php
- > /wp-content/plugins/mybox-b2b/print-file.php
- > /wp-content/plugins/mybox-b2b/admin/barcode.php
- > /wp-content/plugins/mybox-b2b/barcode.php
- > /wp-content/plugins/mybox-b2b/admin/partials/mybox-b2b-admin-display.php
- > /wp-content/plugins/mybox-b2b/admin/print-file.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mybox-b2b/class-mybox-b2b-admin.php on line 27
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/mybox-b2b/admin/class-mybox-b2b-admin.php on line 27
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/mybox-b2b/class-mybox-b2b-admin.php on line 27
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/mybox-b2b/admin/class-mybox-b2b-admin.php on line 27
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/mybox-b2b/class-mybox-b2b-admin.php on line 27
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mybox-b2b/admin/class-mybox-b2b-admin.php on line 27
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
- Donate link: Invalid URI ("oplatform.myboxlogistics.io")
mybox-b2b/mybox-b2b.php Passed 13 tests
The main file in "Mybox B2B" v. 3.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
100 characters long description:
This plugin connects to Mybox API automatically trigger shipment request when sold with woocommerce.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,475 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 266 | 570 | 1,101 |
JavaScript | 3 | 35 | 27 | 201 |
CSS | 4 | 22 | 294 | 152 |
SVG | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 6 | 8.33% |
▷ Public methods | 67 | 93.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 6.94% |
Functions | 13 | |
▷ Named functions | 13 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/logo.png | 11.51KB | 4.18KB | ▼ 63.66% |
admin/img/logo-mybox-exp.png | 7.82KB | 5.17KB | ▼ 33.89% |
img/logo.png | 11.51KB | 4.18KB | ▼ 63.66% |
logo-mybox-bw.png | 7.82KB | 5.17KB | ▼ 33.89% |