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: ▼5.40ms] Passed 4 tests
An overview of server-side resources used by Oliver POS - A WooCommerce Point of Sale (POS)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.12 ▲3.20 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.05 ▼2.86 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.00 ▼4.84 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 77.44 ▼11.85 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 29.20 ▼2.06 |
Server storage [IO: ▲4.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 124 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Oliver POS - A WooCommerce Point of Sale (POS)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲18 | 14.25 ▼0.12 | 1.72 ▼0.18 | 46.28 ▲9.74 |
Dashboard /wp-admin | 2,192 ▲15 | 5.64 ▲0.06 | 90.81 ▼5.96 | 42.18 ▼5.32 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.00 ▲0.01 | 39.72 ▲0.67 | 35.93 ▼1.29 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.99 ▼0.58 | 640.11 ▼17.86 | 62.92 ▲3.36 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.19 ▼0.13 | 99.20 ▲1.02 | 44.05 ▲1.80 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/oliver-pos/woocommerce/single-product/add-to-cart/op_woo_footer.php
- > /wp-content/plugins/oliver-pos/includes/deactivation.php
- > /wp-content/plugins/oliver-pos/includes/views/backend/loader.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: product in wp-content/plugins/oliver-pos/woocommerce/single-product/add-to-cart/op_woo_footer.php on line 105
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/oliver-pos/includes/include-productx-loader.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/oliver-pos/woocommerce/single-product/add-to-cart/op_woo_header.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function get_sale_price() on null in wp-content/plugins/oliver-pos/woocommerce/single-product/add-to-cart/op_woo_footer.php:105
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #10, #11, #12, #13, #14, #15, #16, #17, #9 in oliver-pos/assets to your readme.txt
oliver-pos/oliver-pos.php 85% from 13 tests
"Oliver POS - A WooCommerce Point of Sale (POS)" version 2.4.1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("5.9" instead of "3.8")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected24,917 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 986 | 3,036 | 10,654 |
CSS | 6 | 615 | 86 | 8,446 |
SVG | 25 | 0 | 0 | 5,417 |
JavaScript | 3 | 59 | 25 | 330 |
PO File | 1 | 27 | 28 | 70 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 64.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 410.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 395 | |
▷ Static methods | 52 | 13.16% |
▷ Public methods | 329 | 83.29% |
▷ Protected methods | 8 | 2.03% |
▷ Private methods | 58 | 14.68% |
Functions | 38 | |
▷ Named functions | 24 | 63.16% |
▷ Anonymous functions | 14 | 36.84% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.57MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/resource/img/CustomerSupportPerson_1.png | 486.96KB | 168.75KB | ▼ 65.35% |
public/resource/img/service_lock.png | 0.27KB | 0.22KB | ▼ 19.71% |
public/resource/img/nexcess-logo-md1.png | 3.96KB | 3.47KB | ▼ 12.22% |
public/resource/img/oliver_icon_121.png | 1.23KB | 0.85KB | ▼ 30.49% |
public/resource/img/lock.png | 0.33KB | 0.24KB | ▼ 28.36% |