Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > User notice in wp-includes/functions.php+5663
wp_deregister_script was called incorrectly. Do not deregister the jquery script in the administration area. To target the front-end theme, use the wp_enqueue_scripts hook. Please see Debugging in WordPress for more information. (This message was added in version 3.6.0.)
Server metrics [RAM: ▼1.89MB] [CPU: ▼200.42ms] Passed 4 tests
Analyzing server-side resources used by GetShop ecommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼1.09 | 4.64 ▼30.65 |
Dashboard /wp-admin | 1.76 ▼1.29 | 5.22 ▼66.84 |
Posts /wp-admin/edit.php | 1.76 ▼1.34 | 5.65 ▼35.34 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 5.07 ▼668.84 |
Media Library /wp-admin/upload.php | 1.76 ▼1.24 | 6.52 ▼29.16 |
Server storage [IO: ▲2.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 412 new files
Database: no new tables, 3 new options
New WordPress options |
---|
checkout_page_id |
product_page_id |
cart_page_id |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GetShop ecommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,008 ▲412 | 16.40 ▲1.16 | 21.60 ▲12.71 | 103.61 ▲56.75 |
Dashboard /wp-admin | 3,047 ▲113 | 6.19 ▲0.23 | 163.05 ▲10.75 | 126.65 ▲2.20 |
Posts /wp-admin/edit.php | 2,811 ▲72 | 2.76 ▲0.06 | 77.10 ▲4.40 | 246.07 ▲146.62 |
Add New Post /wp-admin/post-new.php | 1,689 ▲6 | 22.13 ▲3.39 | 280.27 ▼121.90 | 123.00 ▲14.01 |
Media Library /wp-admin/upload.php | 1,891 ▲84 | 5.15 ▲0.13 | 203.32 ▲40.24 | 119.25 ▼7.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5663
wp_deregister_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 8× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/getshop-ecommerce/getshopadminpage.php
- > /wp-content/plugins/getshop-ecommerce/getshopadminpage_products.php
- > /wp-content/plugins/getshop-ecommerce/getshopadminpage_createproduct.php
- > /wp-content/plugins/getshop-ecommerce/checkout.php
- > /wp-content/plugins/getshop-ecommerce/getshopadminpage_editproduct.php
- > /wp-content/plugins/getshop-ecommerce/getshopadminpage_about.php
- > /wp-content/plugins/getshop-ecommerce/getshopadminpage_orders.php
- > /wp-content/plugins/getshop-ecommerce/getshopadminpage_settings.php
- 208× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'core_common_DataCommon' not found in wp-content/plugins/getshop-ecommerce/events/app/leftMenu/data/ListEntry.php:2
- > PHP Fatal error
Uncaught Error: Class 'core_common_DataCommon' not found in wp-content/plugins/getshop-ecommerce/events/core/productmanager/data/ProductConfiguration.php:2
- > PHP Fatal error
Uncaught Error: Class 'core_common_DataCommon' not found in wp-content/plugins/getshop-ecommerce/events/app/logomanager/data/SavedLogo.php:2
- > PHP Fatal error
Uncaught Error: Class 'core_common_MessageBase' not found in wp-content/plugins/getshop-ecommerce/events/core/pagemanager/events/AddApplicationToPageArea.php:2
- > PHP Fatal error
Uncaught Error: Class 'core_common_AnswerMessage' not found in wp-content/plugins/getshop-ecommerce/events/core/databasemanager/answer/DataRetreived.php:2
- > PHP Fatal error
Uncaught Error: Class 'core_common_AnswerMessage' not found in wp-content/plugins/getshop-ecommerce/events/core/pagemanager/answer/PageFound.php:2
- > PHP Fatal error
Uncaught Error: Class 'core_common_AnswerMessage' not found in wp-content/plugins/getshop-ecommerce/events/core/storemanager/answer/CreateShopAnswer.php:2
- > PHP Fatal error
Uncaught Error: Class 'core_common_MessageBase' not found in wp-content/plugins/getshop-ecommerce/events/core/ordermanager/events/UpdateOrder.php:2
- > PHP Fatal error
Uncaught Error: Class 'core_common_AnswerMessage' not found in wp-content/plugins/getshop-ecommerce/events/core/usermanager/answer/UsersFound.php:2
- > PHP Fatal error
Uncaught Error: Class 'core_common_DataCommon' not found in wp-content/plugins/getshop-ecommerce/events/core/calendarmanager/data/EventPartitipated.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: No tags were detected
getshop-ecommerce/wpGetShop.php 92% from 13 tests
"GetShop ecommerce" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("getshop-ecommerce.php" instead of "wpGetShop.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
Everything looks great! No dangerous files found in this plugin15,253 lines of code in 376 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 323 | 2,227 | 3,903 | 7,441 |
JavaScript | 22 | 388 | 818 | 5,199 |
HTML | 9 | 25 | 258 | 1,227 |
CSS | 11 | 67 | 73 | 588 |
Go | 1 | 19 | 10 | 267 |
JSON | 4 | 0 | 0 | 231 |
Markdown | 3 | 58 | 0 | 138 |
Python | 1 | 19 | 14 | 137 |
YAML | 2 | 3 | 0 | 25 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.02 |
Average class complexity | 1.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 1.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 344 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 344 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 575 | |
▷ Static methods | 123 | 21.39% |
▷ Public methods | 573 | 99.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 0.35% |
Functions | 16 | |
▷ Named functions | 16 | 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 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
7 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
arrow_up.png | 0.25KB | 0.29KB | 0.00% |
lightbox/img/close.png | 0.27KB | 0.29KB | 0.00% |
lightbox/img/next.png | 1.32KB | 1.58KB | 0.00% |
lightbox/img/prev.png | 1.33KB | 1.59KB | 0.00% |
arrow_down.png | 0.26KB | 0.29KB | 0.00% |