Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.97ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Sync for Xero - by MyWorks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.00 ▲1.16 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.03 ▼4.41 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.96 ▲0.40 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.25 ▼5.01 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.07 ▲3.07 |
Server storage [IO: ▲25.01MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- Filesystem usage must be lower than 25MB (currently using 25.01MB)
Filesystem: 1,230 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Sync for Xero - by MyWorks
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.29 ▼0.67 | 4.69 ▲2.94 | 44.55 ▲0.70 |
Dashboard /wp-admin | 2,203 ▲15 | 5.79 ▼0.02 | 99.10 ▼9.48 | 40.33 ▲0.39 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.02 | 36.90 ▲0.08 | 31.17 ▼1.91 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 23.15 ▼0.10 | 615.68 ▼15.33 | 52.06 ▲2.94 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.25 ▲0.08 | 95.30 ▼28.85 | 41.26 ▼26.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/myworks-sync-for-xero/admin/partials/myworks-woo-sync-for-xero-admin-display.php
- > /wp-content/plugins/myworks-sync-for-xero/public/partials/myworks-woo-sync-for-xero-public-display.php
- 710× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'XeroAPI\\XeroPHP\\Models\\Accounting\\ModelInterface' not found in wp-content/plugins/myworks-sync-for-xero/includes/lib/xero-lib/vendor/xeroapi/xero-php-oauth2/lib/Models/Accounting/CreditNotes.php:44
- > PHP Fatal error
Uncaught Error: Interface 'XeroAPI\\XeroPHP\\Models\\PayrollUk\\ModelInterface' not found in wp-content/plugins/myworks-sync-for-xero/includes/lib/xero-lib/vendor/xeroapi/xero-php-oauth2/lib/Models/PayrollUk/Problem.php:45
- > PHP Fatal error
Uncaught Error: Interface 'XeroAPI\\XeroPHP\\Models\\AppStore\\ModelInterface' not found in wp-content/plugins/myworks-sync-for-xero/includes/lib/xero-lib/vendor/xeroapi/xero-php-oauth2/lib/Models/AppStore/SubscriptionItem.php:44
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/myworks-sync-for-xero/includes/lib/xero-lib/vendor/xeroapi/xero-php-oauth2/test/Model/TrackingOptionTest.php:41
- > PHP Fatal error
Uncaught Error: Interface 'XeroAPI\\XeroPHP\\Models\\PayrollUk\\ModelInterface' not found in wp-content/plugins/myworks-sync-for-xero/includes/lib/xero-lib/vendor/xeroapi/xero-php-oauth2/lib/Models/PayrollUk/Accounts.php:44
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/myworks-sync-for-xero/includes/lib/xero-lib/vendor/xeroapi/xero-php-oauth2/test/Model/RepeatingInvoiceTest.php:41
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/myworks-sync-for-xero/includes/lib/xero-lib/vendor/monolog/monolog/tests/Monolog/TestCase.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/myworks-sync-for-xero/includes/lib/xero-lib/vendor/xeroapi/xero-php-oauth2/test/Model/CISSettingTest.php:41
- > PHP Fatal error
Uncaught Error: Interface 'XeroAPI\\XeroPHP\\Models\\Accounting\\ModelInterface' not found in wp-content/plugins/myworks-sync-for-xero/includes/lib/xero-lib/vendor/xeroapi/xero-php-oauth2/lib/Models/Accounting/Journal.php:44
- > PHP Fatal error
Uncaught Error: Interface 'XeroAPI\\XeroPHP\\Models\\PayrollNz\\ModelInterface' not found in wp-content/plugins/myworks-sync-for-xero/includes/lib/xero-lib/vendor/xeroapi/xero-php-oauth2/lib/Models/PayrollNz/EmployeeStatutoryLeaveSummary.php:44
- > 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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Conveniently and securely managed from within your WooCommerce admin area.) image missing
myworks-sync-for-xero/myworks-sync-for-xero.php 85% from 13 tests
"WooCommerce Sync for Xero - by MyWorks" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.3" instead of "5.2")
- Description: The description should be shorter than 140 characters (currently 241 characters long)
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin350,172 lines of code in 1,073 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 983 | 42,662 | 155,200 | 224,595 |
HTML | 9 | 10,698 | 946 | 99,986 |
CSS | 13 | 1,891 | 835 | 15,531 |
Markdown | 28 | 1,635 | 0 | 4,925 |
SVG | 4 | 0 | 0 | 2,674 |
JSON | 21 | 1 | 0 | 2,290 |
JavaScript | 9 | 14 | 89 | 78 |
XML | 3 | 3 | 0 | 52 |
Bourne Shell | 2 | 15 | 8 | 34 |
YAML | 1 | 0 | 0 | 7 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 7,411)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 26.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,411.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 99.00 |
Code structure | ||
---|---|---|
Namespaces | 51 | |
Interfaces | 51 | |
Traits | 10 | |
Classes | 864 | |
▷ Abstract classes | 7 | 0.81% |
▷ Concrete classes | 857 | 99.19% |
▷ Final classes | 75 | 8.75% |
Methods | 17,819 | |
▷ Static methods | 3,073 | 17.25% |
▷ Public methods | 17,043 | 95.65% |
▷ Protected methods | 568 | 3.19% |
▷ Private methods | 208 | 1.17% |
Functions | 1,692 | |
▷ Named functions | 172 | 10.17% |
▷ Anonymous functions | 1,520 | 89.83% |
Constants | 2,615 | |
▷ Global constants | 8 | 0.31% |
▷ Class constants | 2,607 | 99.69% |
▷ Public constants | 2,576 | 98.81% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
99 PNG files occupy 2.27MB with 1.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/image/mapp-sta-b.png | 54.75KB | 0.66KB | ▼ 98.79% |
admin/image/connection-icon3.png | 6.44KB | 3.30KB | ▼ 48.79% |
admin/image/mwd-logo.png | 252.85KB | 266.86KB | 0.00% |
admin/image/trash-icon.png | 2.92KB | 0.24KB | ▼ 91.65% |
admin/image/menu-icon-sync_h.png | 22.83KB | 4.10KB | ▼ 82.05% |