Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.15MB] [CPU: ▼135.39ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Websky
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.99 ▲0.16 | 38.80 ▲2.81 |
Dashboard /wp-admin | 3.21 ▲0.16 | 53.57 ▲4.38 |
Posts /wp-admin/edit.php | 3.33 ▲0.22 | 50.01 ▲1.07 |
Add New Post /wp-admin/post-new.php | 5.58 ▲0.15 | 100.70 ▼542.69 |
Media Library /wp-admin/upload.php | 3.16 ▲0.15 | 41.42 ▼2.73 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Websky
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.85 ▲0.19 | 9.45 ▼1.60 | 49.76 ▼2.24 |
Dashboard /wp-admin | 2,970 ▲36 | 5.88 ▼0.18 | 154.79 ▼7.92 | 118.28 ▲7.48 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.00 | 74.94 ▲6.94 | 92.54 ▲0.29 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.65 ▲0.22 | 443.18 ▲54.60 | 119.43 ▼0.46 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.01 ▼0.03 | 163.79 ▼3.51 | 121.90 ▼10.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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 take a closer look at the following
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-websky/lib/nusoap/class.soap_val.php:17
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-websky/lib/nusoap/class.soap_transport_http.php:15
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-websky/lib/nusoap/class.xmlschema.php:15
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-websky/lib/nusoap/class.soapclient.php:26
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-websky/lib/nusoap/class.soap_parser.php:15
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-websky/lib/nusoap/class.soap_fault.php:14
- > PHP Fatal error
require_once(): Failed opening required 'Mail/mimeDecode.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-websky/lib/nusoap/nusoapmime.php on line 42
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/woocommerce-websky/websky.php:25
- > PHP Warning
require_once(Mail/mimeDecode.php): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-websky/lib/nusoap/nusoapmime.php on line 42
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-websky/lib/nusoap/class.wsdl.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
woocommerce-websky/websky.php 85% from 13 tests
"WooCommerce Websky" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-websky.php" instead of "websky.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected13,364 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 1,250 | 5,168 | 12,225 |
JavaScript | 2 | 2 | 19 | 1,105 |
PO File | 1 | 2 | 5 | 21 |
CSS | 1 | 0 | 2 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 74.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 388.00 |
Average method complexity | 8.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 367 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 366 | 99.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.27% |
Functions | 10 | |
▷ Named functions | 10 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin