Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.60MB] [CPU: ▲2.49ms] Passed 4 tests
Server-side resources used by Jovvie Point of Sale POS API for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.61 | 47.22 ▲1.14 |
Dashboard /wp-admin | 3.90 ▲0.59 | 55.67 ▼0.94 |
Posts /wp-admin/edit.php | 4.01 ▲0.65 | 54.79 ▲6.42 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.59 | 100.43 ▲12.81 |
Media Library /wp-admin/upload.php | 3.82 ▲0.59 | 41.15 ▲3.34 |
Server storage [IO: ▲37.83MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- Try to limit filesystem usage to 25MB (currently using 37.83MB)
Filesystem: 691 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Jovvie Point of Sale POS API for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲39 | 14.25 ▼0.01 | 1.54 ▼0.22 | 42.65 ▼7.60 |
Dashboard /wp-admin | 2,209 ▲32 | 5.60 ▼0.14 | 95.47 ▼17.84 | 38.76 ▼4.00 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 1.99 ▲0.02 | 41.79 ▲4.66 | 40.69 ▲7.46 |
Add New Post /wp-admin/post-new.php | 1,532 ▲5 | 23.30 ▼0.01 | 599.32 ▼97.19 | 50.23 ▼7.53 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.16 ▼0.01 | 99.77 ▲0.69 | 42.62 ▲0.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/point-of-sale-pos-woocommerce/includes/Gateway/Stripe/api/build.php
- > /wp-content/plugins/point-of-sale-pos-woocommerce/includes/Gateway/Stripe/api/update_certs.php
- 278× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\StripeClientInterface' not found in wp-content/plugins/point-of-sale-pos-woocommerce/includes/Gateway/Stripe/api/lib/BaseStripeClient.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/point-of-sale-pos-woocommerce/includes/Gateway/Stripe/api/lib/Service/FileService.php:5
- > PHP Fatal error
Uncaught Error: Class 'ZPOS\\Admin\\Setting\\InputBase' not found in wp-content/plugins/point-of-sale-pos-woocommerce/includes/Admin/Setting/Input/ColorPicker.php:7
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p11_Factory' not found in wp-content/plugins/point-of-sale-pos-woocommerce/plugin-update-checker/Puc/v4/Factory.php:4
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/user.php): failed to open stream: No such file or directory in wp-content/plugins/point-of-sale-pos-woocommerce/includes/Admin/Tabs/Users/Access.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/point-of-sale-pos-woocommerce/includes/Gateway/Stripe/api/lib/Service/SkuService.php:5
- > PHP Fatal error
Uncaught Error: Class 'ZPOS\\Admin\\Setting\\CoreBox' not found in wp-content/plugins/point-of-sale-pos-woocommerce/includes/Admin/Tabs/Users/Multiple.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/point-of-sale-pos-woocommerce/includes/Gateway/Stripe/api/lib/Service/RefundService.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/point-of-sale-pos-woocommerce/includes/Gateway/Stripe/api/build.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/point-of-sale-pos-woocommerce/includes/Gateway/Stripe/api/lib/ThreeDSecure.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: There are too many tags (43 tag instead of maximum 10)
point-of-sale-pos-woocommerce/index.php 77% from 13 tests
Analyzing the main PHP file in "Jovvie Point of Sale POS API for WooCommerce" version 4.0.3
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "2.4.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("point-of-sale-pos-woocommerce.php" instead of "index.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please make sure to remedy the following
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/point-of-sale-pos-woocommerce/includes/Gateway/Stripe/api/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 67 | 0 | 20 | 50,407 |
PHP | 384 | 4,874 | 11,037 | 26,233 |
CSS | 10 | 8,443 | 13 | 26,068 |
PO File | 54 | 8,270 | 9,560 | 20,097 |
Markdown | 4 | 743 | 0 | 1,164 |
JSON | 6 | 8 | 0 | 185 |
JavaScript | 13 | 17 | 13 | 78 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 9 | 0 | 27 |
YAML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 43 | |
Interfaces | 7 | |
Traits | 11 | |
Classes | 353 | |
▷ Abstract classes | 23 | 6.52% |
▷ Concrete classes | 330 | 93.48% |
▷ Final classes | 0 | 0.00% |
Methods | 1,717 | |
▷ Static methods | 306 | 17.82% |
▷ Public methods | 1,412 | 82.24% |
▷ Protected methods | 205 | 11.94% |
▷ Private methods | 100 | 5.82% |
Functions | 112 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 112 | 100.00% |
Constants | 756 | |
▷ Global constants | 5 | 0.66% |
▷ Class constants | 751 | 99.34% |
▷ Public constants | 749 | 99.73% |
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
20 PNG files occupy 1.96MB with 1.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-11.png | 158.90KB | 53.07KB | ▼ 66.60% |
assets/admin/bizswoop.png | 12.40KB | 6.43KB | ▼ 48.13% |
assets/admin/logo.png | 10.89KB | 2.73KB | ▼ 74.96% |
assets/screenshot-2.png | 51.77KB | 13.45KB | ▼ 74.02% |
assets/quick-start/hero.png | 25.11KB | 25.85KB | 0.00% |