Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼9.65ms] Passed 4 tests
A check of server-side resources used by Invoice-Sync-for-Xero-and-WPeCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.56 ▼6.76 |
Dashboard /wp-admin | 3.40 ▲0.05 | 51.03 ▼17.60 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 51.19 ▼1.26 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 94.06 ▼12.97 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 40.51 ▲4.56 |
Help /wp-admin/admin.php?page=invoice-sync-for-xero-and-wpecommerce/isxwpe_plugin_help.php | 3.29 | 31.79 |
Xero Sync History /wp-admin/admin.php?page=invoice-sync-for-xero-and-wpecommerce/isxwpe_invoice_history.php | 3.29 | 36.41 |
Xero Auth /wp-admin/admin.php?page=invoice-sync-for-xero-and-wpecommerce/xero-invoice.php | 3.29 | 35.55 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_xero_auth |
wp_xero_history |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Invoice-Sync-for-Xero-and-WPeCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.25 ▼0.12 | 1.82 ▲0.13 | 43.42 ▼0.08 |
Dashboard /wp-admin | 2,229 ▲55 | 5.62 ▲0.05 | 91.93 ▼7.99 | 41.13 ▼5.54 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.99 ▲0.04 | 39.54 ▲4.23 | 35.62 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 18.31 ▼4.90 | 633.91 ▼44.52 | 78.73 ▲25.70 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.14 ▼0.08 | 100.79 ▼8.45 | 43.34 ▼5.39 |
Help /wp-admin/admin.php?page=invoice-sync-for-xero-and-wpecommerce/isxwpe_plugin_help.php | 887 | 1.99 | 26.10 | 31.10 |
Xero Sync History /wp-admin/admin.php?page=invoice-sync-for-xero-and-wpecommerce/isxwpe_invoice_history.php | 837 | 1.90 | 26.35 | 33.60 |
Xero Auth /wp-admin/admin.php?page=invoice-sync-for-xero-and-wpecommerce/xero-invoice.php | 843 | 2.00 | 23.02 | 36.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_xero_history
- wp_xero_auth
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/invoice-sync-for-xero-and-wpecommerce/xero_library/private.php
- > /wp-content/plugins/invoice-sync-for-xero-and-wpecommerce/xero_library/index.php
- > /wp-content/plugins/invoice-sync-for-xero-and-wpecommerce/xero_library/public.php
- > /wp-content/plugins/invoice-sync-for-xero-and-wpecommerce/xero_library/partner.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
file_get_contents(wp-content/plugins/invoice-sync-for-xero-and-wpecommerce/xero_library/certs/entrust-cert.pem): failed to open stream: No such file or directory in /var/www/wordpress/wp-content/plugins/invoice-sync-for-xero-and-wpecommerce/xero_library/lib/XeroOAuth.php on line 605
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/invoice-sync-for-xero-and-wpecommerce/xero-invoice.php:14
- > PHP Warning
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: invoice, xero, wpecommerce
invoice-sync-for-xero-and-wpecommerce/xero-invoice.php 92% from 13 tests
This is the main PHP file of "Invoice-Sync-for-Xero-and-WPeCommerce" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("invoice-sync-for-xero-and-wpecommerce.php" instead of "xero-invoice.php")
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
It is important to fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/invoice-sync-for-xero-and-wpecommerce/xero_library/certs/ca-bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 266 | 470 | 2,138 |
CSS | 1 | 33 | 50 | 1,142 |
Markdown | 2 | 57 | 0 | 101 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 37.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 35 | |
▷ Static methods | 1 | 2.86% |
▷ Public methods | 29 | 82.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 17.14% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 15 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/set_up_plugin.png | 129.41KB | 46.34KB | ▼ 64.19% |
images/application_detalis.png | 46.29KB | 18.43KB | ▼ 60.19% |