Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼9.20ms] Passed 4 tests
Analyzing server-side resources used by wcOne - Ultimate Addons For WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.06 ▲0.34 |
Dashboard /wp-admin | 3.31 ▼0.03 | 50.05 ▼8.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 51.11 ▲1.97 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 84.37 ▼19.44 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.08 ▼9.26 |
Server storage [IO: ▲8.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 174 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
wcone_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for wcOne - Ultimate Addons For WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲71 | 13.32 ▼0.98 | 2.01 ▲0.01 | 44.48 ▲0.76 |
Dashboard /wp-admin | 2,238 ▲32 | 4.88 ▼0.92 | 104.99 ▲2.06 | 41.93 ▼7.24 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.04 ▲0.01 | 37.34 ▼0.75 | 34.94 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 17.48 ▼0.02 | 666.75 ▲8.22 | 64.53 ▲11.92 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.22 ▼0.06 | 101.47 ▼2.67 | 43.07 ▼5.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 36× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant WCONE_DIR_ADMIN - assumed 'WCONE_DIR_ADMIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/wcone/admin/inc/settings-fields/class-settings-fields.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function Wcone\\add_action() in wp-content/plugins/wcone/inc/custom-hooks.php:17
- > PHP Fatal error
Uncaught Error: Class 'Wcone\\Admin\\Settings_Fields_Base' not found in wp-content/plugins/wcone/admin/inc/tabs-content/color-settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function Wcone\\add_action() in wp-content/plugins/wcone/inc/class-hooks.php:18
- > PHP Fatal error
require_once(): Failed opening required 'WCONE_DIR_ADMINinc/settings-fields/checkbox.php' (include_path='.:/usr/share/php') in wp-content/plugins/wcone/admin/inc/settings-fields/class-settings-fields.php on line 17
- > PHP Warning
Use of undefined constant WCONE_DIR_INC - assumed 'WCONE_DIR_INC' (this will throw an Error in a future version of PHP) in wp-content/plugins/wcone/wcone-init.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'Wcone\\Admin\\Settings_Fields_Base' not found in wp-content/plugins/wcone/admin/inc/tabs-content/delivertimebranch.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/wcone/wcone.php:32
- > PHP Fatal error
Uncaught Error: Class 'Wcone\\Admin\\Settings_Fields_Base' not found in wp-content/plugins/wcone/admin/inc/tabs-content/location.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function Wcone\\add_action() in wp-content/plugins/wcone/admin/admin.php:21
- > 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
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Requires php: Version not formatted correctly
- Requires at least: Version not formatted correctly
wcone/wcone.php Passed 13 tests
The main PHP script in "wcOne - Ultimate Addons For WooCommerce" version 1.0.1 is automatically included on every request by WordPress
31 characters long description:
Ultimate Addons For WooCommerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin32,551 lines of code in 104 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 27 | 0 | 12 | 12,101 |
JavaScript | 8 | 2,548 | 7,253 | 7,988 |
CSS | 10 | 788 | 222 | 7,883 |
PHP | 59 | 1,176 | 1,225 | 4,579 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 17 | |
Classes | 30 | |
▷ Abstract classes | 2 | 6.67% |
▷ Concrete classes | 28 | 93.33% |
▷ Final classes | 2 | 7.14% |
Methods | 190 | |
▷ Static methods | 104 | 54.74% |
▷ Public methods | 153 | 80.53% |
▷ Protected methods | 18 | 9.47% |
▷ Private methods | 19 | 10.00% |
Functions | 43 | |
▷ Named functions | 40 | 93.02% |
▷ Anonymous functions | 3 | 6.98% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
24 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon/odi.png | 3.72KB | 2.04KB | ▼ 45.04% |
assets/img/icon/title_icon.png | 0.94KB | 0.46KB | ▼ 50.73% |
admin/assets/wcone-logo.png | 6.44KB | 3.33KB | ▼ 48.27% |
assets/img/cross.png | 0.25KB | 0.18KB | ▼ 27.63% |
assets/img/icon/item1.png | 18.09KB | 5.94KB | ▼ 67.19% |