Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.63ms] Passed 4 tests
Analyzing server-side resources used by WebPOS – Point of Sale for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.48 ▼2.22 |
Dashboard /wp-admin | 3.34 ▼0.00 | 46.08 ▼15.75 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 43.26 ▼5.68 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 89.09 ▼10.87 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 34.87 ▼0.12 |
Server storage [IO: ▲3.43MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 128 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
WebPOS – Point of Sale for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲34 | 13.15 ▼1.53 | 1.62 ▼0.43 | 42.00 ▼0.33 |
Dashboard /wp-admin | 2,211 ▲23 | 4.87 ▲0.02 | 113.49 ▲3.85 | 46.14 ▲0.51 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.02 ▼0.03 | 33.72 ▼0.59 | 34.97 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.44 ▲0.13 | 614.18 ▼74.37 | 61.68 ▲9.89 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.24 ▼0.05 | 95.31 ▼6.03 | 43.19 ▼4.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: woocommerce, ecommerce, woo pos, webpos
webpos-point-of-sale-for-woocommerce/webpos-point-of-sale-for-woocommerce.php Passed 13 tests
The principal PHP file in "WebPOS – Point of Sale for WooCommerce" v. 1.0.11 is loaded by WordPress automatically on each request
115 characters long description:
WebPOS – Point of Sale for WooCommerce allows you to sell in your physical retail store and sync with data online
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin21,912 lines of code in 102 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 244 | 201 | 7,454 |
JavaScript | 31 | 55 | 136 | 6,510 |
SVG | 3 | 0 | 12 | 2,880 |
CSS | 34 | 120 | 123 | 2,560 |
Sass | 9 | 366 | 7 | 2,508 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 173)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 59.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 420.00 |
Average method complexity | 7.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 173.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 187 | |
▷ Static methods | 62 | 33.16% |
▷ Public methods | 177 | 94.65% |
▷ Protected methods | 6 | 3.21% |
▷ Private methods | 4 | 2.14% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-256x256.png | 1.22KB | 1.18KB | ▼ 3.13% |