Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.37ms] Passed 4 tests
A check of server-side resources used by Posnet Printer Integration Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 42.82 ▲1.01 |
Dashboard /wp-admin | 3.39 ▲0.08 | 52.47 ▲2.44 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 49.53 ▼5.65 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 86.27 ▼19.28 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.66 ▲2.62 |
Posnet Printer /wp-admin/admin.php?page=posnet-printer-for-woocommerce | 3.25 | 33.83 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
woocommerce_posnet_printer_config |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Posnet Printer Integration Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.34 ▼0.04 | 1.95 ▼0.26 | 45.65 ▲3.06 |
Dashboard /wp-admin | 2,192 ▲15 | 5.54 ▼0.15 | 87.48 ▼3.83 | 39.09 ▼17.39 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.99 ▼0.04 | 35.52 ▼5.21 | 33.32 ▼5.28 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.09 ▼0.09 | 670.31 ▲13.09 | 57.17 ▼3.04 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.19 ▼0.02 | 97.92 ▲0.61 | 44.81 ▲4.39 |
Posnet Printer /wp-admin/admin.php?page=posnet-printer-for-woocommerce | 724 | 1.12 | 6.44 | 21.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- recovery_mode_email_last_sent
- woocommerce_posnet_printer_config
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=posnet-printer-for-woocommerce
- > Error in wp-content/plugins/posnet-printer-for-woocommerce/posnet-printer-for-woocommerce.php+133
Uncaught Error: Call to undefined function wc_get_orders() in wp-content/plugins/posnet-printer-for-woocommerce/posnet-printer-for-woocommerce.php:133
Stack trace:
#0 wp-content/plugins/posnet-printer-for-woocommerce/posnet-printer-for-woocommerce.php(431): Posnet_Printer_For_Woocommerce_Orders_Table->prepare_items()
#1 wp-includes/class-wp-hook.php(310): posnet_printer_for_woocommerce_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #3, #4 in posnet-printer-for-woocommerce/assets to your readme.txt
- Donate link: Please fix this invalid URI: ""
posnet-printer-for-woocommerce/posnet-printer-for-woocommerce.php 85% from 13 tests
The main PHP file in "Posnet Printer Integration Plugin" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "3.0.0")
- Domain Path: The domain path folder does not exist ("/lang")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected374 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 55 | 80 | 374 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected