Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.10ms] Passed 4 tests
Analyzing server-side resources used by Shopgate
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.06 | 29.62 ▼10.02 |
Dashboard /wp-admin | 3.33 ▲0.02 | 49.49 ▼1.76 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.15 ▼6.93 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.20 ▼3.31 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.99 ▼4.15 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 98 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Shopgate
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,465 ▼296 | 14.20 ▼0.23 | 0.83 ▼0.82 | 15.05 ▼28.24 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▲0.03 | 90.76 ▼4.30 | 40.53 ▼2.82 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.98 ▲0.01 | 37.25 ▼1.21 | 30.85 ▼7.19 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 22.90 ▼0.34 | 607.82 ▼45.14 | 63.79 ▲14.05 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.18 ▼0.07 | 104.37 ▼6.19 | 54.52 ▲13.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 fix the following
- 46× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Shopgate_Model_AbstractExport' not found in wp-content/plugins/shopgate-connector/vendor/shopgate/classes/models/catalog/Property.php:39
- > PHP Fatal error
Uncaught Error: Class 'Shopgate_Model_Redirect_DeeplinkSuffixValue' not found in wp-content/plugins/shopgate-connector/vendor/shopgate/classes/models/redirect/DeeplinkSuffixValueUnset.php:24
- > PHP Fatal error
Uncaught Error: Class 'ShopgateObject' not found in wp-content/plugins/shopgate-connector/vendor/shopgate/classes/helper/redirect/MobileRedirect.php:24
- > PHP Fatal error
Uncaught Error: Class 'Shopgate_Model_AbstractExport' not found in wp-content/plugins/shopgate-connector/vendor/shopgate/classes/models/catalog/Relation.php:39
- > PHP Fatal error
Uncaught Error: Class 'Shopgate_Model_AbstractExport' not found in wp-content/plugins/shopgate-connector/vendor/shopgate/classes/models/catalog/Category.php:54
- > PHP Fatal error
Uncaught Error: Class 'Shopgate_Model_AbstractExport' not found in wp-content/plugins/shopgate-connector/vendor/shopgate/classes/models/catalog/Option.php:45
- > PHP Fatal error
Uncaught Error: Class 'Shopgate_Model_Redirect_DeeplinkSuffixValue' not found in wp-content/plugins/shopgate-connector/vendor/shopgate/classes/models/redirect/DeeplinkSuffixValueDisabled.php:24
- > PHP Fatal error
Uncaught Error: Class 'Shopgate_Model_AbstractExport' not found in wp-content/plugins/shopgate-connector/vendor/shopgate/classes/models/catalog/Price.php:54
- > PHP Fatal error
Uncaught Error: Interface 'Shopgate_Helper_Redirect_RedirectorInterface' not found in wp-content/plugins/shopgate-connector/vendor/shopgate/classes/helper/redirect/Redirector.php:24
- > PHP Fatal error
Uncaught Error: Class 'ShopgateObject' not found in wp-content/plugins/shopgate-connector/vendor/shopgate/classes/apis.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: shopgate, mobile, apps, ios, iphone...
shopgate-connector/shopgate.php 77% from 13 tests
The main file in "Shopgate" v. 2.9.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: Name the main plugin file the same as the plugin slug ("shopgate-connector.php" instead of "shopgate.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin11,782 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 66 | 3,550 | 9,636 | 11,556 |
HTML | 3 | 21 | 2 | 115 |
XML | 2 | 39 | 44 | 111 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 11.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 227.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 14 | |
Traits | 0 | |
Classes | 109 | |
▷ Abstract classes | 9 | 8.26% |
▷ Concrete classes | 100 | 91.74% |
▷ Final classes | 1 | 1.00% |
Methods | 1,769 | |
▷ Static methods | 42 | 2.37% |
▷ Public methods | 1,602 | 90.56% |
▷ Protected methods | 147 | 8.31% |
▷ Private methods | 20 | 1.13% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 446 | |
▷ Global constants | 15 | 3.36% |
▷ Class constants | 431 | 96.64% |
▷ Public constants | 431 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin