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
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.59ms] Passed 4 tests
An overview of server-side resources used by POSIT POS integration for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 40.06 ▼5.66 |
Dashboard /wp-admin | 3.32 ▼0.03 | 45.91 ▼19.86 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.52 ▲0.07 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 81.56 ▼11.52 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.84 ▼1.33 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
POSIT POS integration for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲79 | 14.27 ▲0.11 | 1.87 ▲0.18 | 40.37 ▼6.60 |
Dashboard /wp-admin | 2,195 ▲14 | 5.62 ▼0.03 | 89.17 ▼9.67 | 38.69 ▼1.26 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▼0.04 | 38.92 ▼0.26 | 34.48 ▼1.34 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.14 ▲0.08 | 693.05 ▼36.63 | 50.17 ▼10.86 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.01 | 93.73 ▼6.65 | 43.46 ▼2.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/posit-pos-integration-for-woocommerce/trunk/posit-wc-integration.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/posit-pos-integration-for-woocommerce/posit-wc.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/posit-pos-integration-for-woocommerce/trunk/posit-wc.php:18
- > PHP Fatal error
Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/posit-pos-integration-for-woocommerce/posit-wc-integration.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: woocommerce, pos, posit
posit-pos-integration-for-woocommerce/posit-wc.php 92% from 13 tests
The main file in "POSIT POS integration for WooCommerce" v. 1.03 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("posit-pos-integration-for-woocommerce.php" instead of "posit-wc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin464 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 65 | 104 | 464 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 30 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 11.76% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin