Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼15.56ms] Passed 4 tests
A check of server-side resources used by Woocommerce Support System
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 46.71 ▲3.74 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.75 ▼17.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.93 ▼0.09 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.25 ▼42.45 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.78 ▼2.70 |
Server storage [IO: ▲2.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 123 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Woocommerce Support System
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 14.38 ▼0.22 | 1.76 ▲0.24 | 43.42 ▲3.83 |
Dashboard /wp-admin | 2,215 ▲47 | 5.56 ▼0.12 | 85.76 ▼45.42 | 39.84 ▼19.03 |
Posts /wp-admin/edit.php | 2,120 ▲23 | 2.01 ▲0.07 | 36.39 ▼0.15 | 33.54 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,541 ▼1 | 23.05 ▲0.19 | 677.64 ▲56.78 | 54.51 ▲1.19 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.19 ▲0.01 | 99.69 ▼12.00 | 44.75 ▼1.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wc-support-system/includes/class-wss-table.php on line 12
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wc-support-system/includes/class-wss-table.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-support-system/includes/class-wc-support-system.php:18
- > PHP Fatal error
Uncaught Error: Class 'Ilghera_Notice' not found in wp-content/plugins/wc-support-system/includes/ilghera-notice/extension.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wc-support-system/includes/ilghera-notice/class-ilghera-notice.php:214
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wc-support-system/includes/class-wss-table.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: thread, woocommerce, support, orders, ecommerce...
wc-support-system/wc-support-system.php Passed 13 tests
The entry point to "Woocommerce Support System" version 1.2.1 is a PHP file that has certain tags in its header comment area
87 characters long description:
Give support to your WooComerce customers with this fast and easy to use ticket system.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected34,822 lines of code in 100 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 42 | 1,812 | 2,839 | 12,362 |
CSS | 10 | 105 | 79 | 8,181 |
YAML | 2 | 744 | 4 | 5,032 |
HTML | 14 | 672 | 3 | 4,958 |
PHP | 14 | 565 | 804 | 1,859 |
Markdown | 7 | 254 | 0 | 961 |
Sass | 1 | 96 | 32 | 589 |
PO File | 1 | 110 | 134 | 287 |
JSON | 5 | 0 | 0 | 284 |
JSX | 1 | 34 | 7 | 205 |
SVG | 2 | 4 | 0 | 79 |
Vuejs Component | 1 | 2 | 0 | 25 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 29.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 27 | 25.47% |
▷ Public methods | 102 | 96.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 3.77% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/dustbin-admin.png | 0.54KB | 0.30KB | ▼ 44.67% |
js/tzCheckbox/jquery.tzCheckbox/background.png | 4.96KB | 2.59KB | ▼ 47.82% |
vendor/harvesthq/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
vendor/harvesthq/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
js/tzCheckbox/img/line_bg.png | 0.26KB | 0.23KB | ▼ 9.16% |