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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.33ms] Passed 4 tests
An overview of server-side resources used by Qinvoice Connect for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.55 ▲0.70 |
Dashboard /wp-admin | 3.35 ▲0.00 | 50.81 ▼13.66 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 54.52 ▲4.70 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.68 ▼19.06 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.76 ▲2.70 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Qinvoice Connect for Woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.25 ▼0.13 | 1.90 ▲0.29 | 51.67 ▲13.72 |
Dashboard /wp-admin | 2,201 ▲24 | 5.57 ▼0.05 | 88.81 ▼5.85 | 40.60 ▲1.80 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.98 ▼0.03 | 36.96 ▼1.15 | 34.01 ▲0.41 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 21.05 ▼2.20 | 677.55 ▲7.07 | 55.81 ▲2.40 |
Media Library /wp-admin/upload.php | 1,409 ▲15 | 4.20 ▲0.06 | 106.15 ▲1.77 | 44.29 ▼0.73 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/qinvoice-connect-for-woocommerce/woocommerce-qinvoice-connect.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid URI ("n/a")
qinvoice-connect-for-woocommerce/woocommerce-qinvoice-connect.php 85% from 13 tests
The main file in "Qinvoice Connect for Woocommerce" v. 2.2.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("qinvoice-connect-for-woocommerce.php" instead of "woocommerce-qinvoice-connect.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin6,464 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 5 | 2,242 | 4,879 | 4,972 |
PHP | 6 | 394 | 275 | 1,466 |
JavaScript | 2 | 3 | 0 | 26 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 26.83 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 1 | 1.82% |
▷ Public methods | 54 | 98.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.82% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/invoice.png | 0.81KB | 0.78KB | ▼ 3.26% |
images/order_confirmation.png | 3.29KB | 0.73KB | ▼ 77.85% |
images/quote.png | 0.45KB | 0.41KB | ▼ 8.10% |