Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.49MB] [CPU: ▲902.70ms] 75% from 4 tests
An overview of server-side resources used by Shop 2 API
It is recommended to improve the following
- Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 902.70ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.47 | 43.47 ▲2.64 |
Dashboard /wp-admin | 3.80 ▲0.49 | 1,218.24 ▲1,167.99 |
Posts /wp-admin/edit.php | 3.92 ▲0.55 | 1,349.20 ▲1,300.09 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.51 | 1,489.80 ▲1,390.83 |
Media Library /wp-admin/upload.php | 3.73 ▲0.49 | 1,170.53 ▲1,140.08 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Shop 2 API
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲50 | 14.14 ▼0.57 | 1.77 ▲0.13 | 43.58 ▼1.11 |
Dashboard /wp-admin | 2,214 ▲34 | 5.67 ▲0.03 | 92.25 ▼0.51 | 40.61 ▼3.92 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.03 ▲0.01 | 38.79 ▼2.91 | 34.83 ▼0.07 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 22.87 ▼0.37 | 668.08 ▲7.01 | 55.23 ▲5.93 |
Media Library /wp-admin/upload.php | 1,425 ▲28 | 4.20 ▼0.01 | 101.75 ▲1.32 | 44.08 ▲0.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% 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 0% 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
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/shop-2-api/templates/connection-information.php
- > /wp-content/plugins/shop-2-api/shop-2-api.php
- > /wp-content/plugins/shop-2-api/templates/wc-category-mapping.php
- 31× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'SHOP2API_PLUGIN_PATH/includes/Base/CommonFunctions.php' (include_path='.:/usr/share/php') in wp-content/plugins/shop-2-api/includes/Tables/Bol2WcStatusReport.php on line 12
- > PHP Warning
Use of undefined constant SHOP2API_PLUGIN_PATH - assumed 'SHOP2API_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shop-2-api/includes/Tables/Bol2WcOrderReport.php on line 12
- > PHP Warning
require_once(SHOP2API_PLUGIN_PATH/includes/Base/CommonFunctions.php): failed to open stream: No such file or directory in wp-content/plugins/shop-2-api/templates/common-header.php on line 2
- > PHP Warning
Use of undefined constant SHOP2API_PLUGIN_PATH - assumed 'SHOP2API_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shop-2-api/templates/common-header.php on line 2
- > PHP Warning
require_once(SHOP2API_PLUGIN_PATH/includes/Api/Shop2ApiConnect.php): failed to open stream: No such file or directory in wp-content/plugins/shop-2-api/includes/Tables/WcCategorySelection.php on line 12
- > PHP Warning
Use of undefined constant SHOP2API_PLUGIN_PATH - assumed 'SHOP2API_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shop-2-api/includes/Tables/Bol2WcStatusReportDetail.php on line 12
- > PHP Warning
require_once(SHOP2API_PLUGIN_PATH/includes/Base/CommonFunctions.php): failed to open stream: No such file or directory in wp-content/plugins/shop-2-api/templates/common-header.php on line 2
- > PHP Warning
Use of undefined constant SHOP2API_PLUGIN_PATH - assumed 'SHOP2API_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shop-2-api/templates/common-header.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'SHOP2API_PLUGIN_PATH/includes/Base/CommonFunctions.php' (include_path='.:/usr/share/php') in wp-content/plugins/shop-2-api/templates/common-header.php on line 2
- > PHP Warning
require_once(SHOP2API_PLUGIN_PATH/includes/Base/CommonFunctions.php): failed to open stream: No such file or directory in wp-content/plugins/shop-2-api/templates/common-header.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Contributors: The plugin contributors field is not present
shop-2-api/shop-2-api.php 85% from 13 tests
The main file in "Shop 2 API" v. 1.0.28.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Description: Please don't use more than 140 characters for the plugin description (currently 286 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,907 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 462 | 376 | 3,097 |
JavaScript | 12 | 247 | 96 | 1,331 |
CSS | 3 | 95 | 30 | 479 |
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 problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 11.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 1 | 5.88% |
Methods | 175 | |
▷ Static methods | 7 | 4.00% |
▷ Public methods | 161 | 92.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 8.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.36MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/bol-icon.png | 56.84KB | 19.21KB | ▼ 66.21% |
assets/logo.png | 113.31KB | 44.68KB | ▼ 60.57% |
assets/CredentialsBol.png | 152.22KB | 56.77KB | ▼ 62.71% |
assets/woocommerce-icon.png | 18.48KB | 7.25KB | ▼ 60.78% |
assets/external/png/pictures.png | 14.70KB | 6.22KB | ▼ 57.70% |