Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.44MB] [CPU: ▼294.61ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Square
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.47 | 57.86 ▲3.25 |
Dashboard /wp-admin | 3.88 ▲0.48 | 40.93 ▲6.18 |
Posts /wp-admin/edit.php | 4.10 ▲0.46 | 47.34 ▲5.49 |
Add New Post /wp-admin/post-new.php | 7.34 ▲0.37 | 95.00 ▼1,190.06 |
Media Library /wp-admin/upload.php | 3.76 ▲0.47 | 31.24 ▲2.88 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 3.92 | 30.40 |
Server storage [IO: ▲7.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 1,439 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Square
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,832 ▲90 | 16.69 ▲0.50 | 6.23 ▲0.13 | 2.79 ▲0.54 |
Dashboard /wp-admin | 2,929 ▲42 | 6.49 ▲0.01 | 130.44 ▼24.29 | 158.49 ▼15.68 |
Posts /wp-admin/edit.php | 2,716 ▲22 | 3.44 ▼0.00 | 62.24 ▼0.73 | 141.54 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,773 ▲21 | 22.98 ▲1.14 | 402.38 ▼53.52 | 158.09 ▲7.78 |
Media Library /wp-admin/upload.php | 1,723 ▲22 | 5.72 ▼0.04 | 137.73 ▼1.92 | 180.65 ▼6.00 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,229 | 2.62 | 55.92 | 101.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% 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 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
The following issues need your attention
- 82× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-square/vendor/prospress/action-scheduler/classes/ActionScheduler_Abstract_ListTable.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'Codeception\\Actor' not found in wp-content/plugins/woocommerce-square/vendor/skyverge/wc-plugin-framework/tests/_support/UnitTester.php:19
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/woocommerce-square/vendor/prospress/action-scheduler/lib/cron-expression/CronExpression_DayOfWeekField.php:18
- > PHP Fatal error
Uncaught Error: Class 'Codeception\\Actor' not found in wp-content/plugins/woocommerce-square/vendor/skyverge/wc-plugin-framework/tests/_support/FunctionalTester.php:19
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/woocommerce-square/vendor/prospress/action-scheduler/tests/phpunit/jobstore/ActionScheduler_wpPostStore_Test.php:7
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/woocommerce-square/vendor/prospress/action-scheduler/tests/phpunit/logging/ActionScheduler_wpCommentLogger_Test.php:7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-square/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 28
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/woocommerce-square/vendor/prospress/action-scheduler/classes/ActionScheduler_wpPostStore.php:6
- > PHP Fatal error
Uncaught Error: Interface 'ActionScheduler_Schedule' not found in wp-content/plugins/woocommerce-square/vendor/prospress/action-scheduler/classes/ActionScheduler_SimpleSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/woocommerce-square/vendor/prospress/action-scheduler/tests/phpunit/runner/ActionScheduler_QueueRunner_Test.php:7
- > 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 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: credit card, square, woocommerce, inventory sync
woocommerce-square/woocommerce-square.php 85% from 13 tests
The principal PHP file in "WooCommerce Square" v. 2.9.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)
- Requires at least: The required version number must match the one declared in readme.txt ("4.6" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin104,912 lines of code in 1,369 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 759 | 23,868 | 79,539 | 87,515 |
Markdown | 515 | 5,934 | 0 | 12,995 |
JavaScript | 21 | 150 | 83 | 1,376 |
PO File | 1 | 392 | 692 | 998 |
CoffeeScript | 7 | 475 | 320 | 655 |
Sass | 7 | 119 | 26 | 558 |
JSON | 8 | 0 | 0 | 246 |
YAML | 12 | 39 | 41 | 225 |
CSS | 10 | 18 | 5 | 112 |
XML | 4 | 1 | 0 | 101 |
SVG | 22 | 0 | 0 | 61 |
HTML | 2 | 8 | 0 | 50 |
Bourne Shell | 1 | 10 | 8 | 20 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 12.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 473.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 31 | |
Interfaces | 16 | |
Traits | 0 | |
Classes | 718 | |
▷ Abstract classes | 27 | 3.76% |
▷ Concrete classes | 691 | 96.24% |
▷ Final classes | 0 | 0.00% |
Methods | 8,816 | |
▷ Static methods | 224 | 2.54% |
▷ Public methods | 8,162 | 92.58% |
▷ Protected methods | 591 | 6.70% |
▷ Private methods | 63 | 0.71% |
Functions | 45 | |
▷ Named functions | 21 | 46.67% |
▷ Anonymous functions | 24 | 53.33% |
Constants | 133 | |
▷ Global constants | 23 | 17.29% |
▷ Class constants | 110 | 82.71% |
▷ Public constants | 110 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
28 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/assets/images/card-maestro.png | 1.62KB | 1.69KB | 0.00% |
vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/assets/images/card-cartebleue.png | 0.35KB | 0.38KB | 0.00% |
vendor/prospress/action-scheduler/docs/android-chrome-256x256.png | 24.02KB | 12.98KB | ▼ 45.95% |
vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/assets/images/card-amex.png | 1.14KB | 1.21KB | 0.00% |
vendor/prospress/action-scheduler/docs/android-chrome-192x192.png | 16.63KB | 8.88KB | ▼ 46.62% |