Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.05ms] Passed 4 tests
This is a short check of server-side resources used by S2W Payments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.63 ▼0.59 |
Dashboard /wp-admin | 3.36 ▲0.02 | 56.65 ▼9.37 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 55.66 ▲5.28 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 84.87 ▼20.80 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.44 ▼1.44 |
Search Payments /wp-admin/admin.php?page=s2w-payments | 3.23 | 32.65 |
Settings /wp-admin/admin.php?page=s2w-payments-settings | 3.28 | 37.65 |
Import to WooCommerce /wp-admin/admin.php?page=s2w-payments-import-to-wc | 3.29 | 32.68 |
Server storage [IO: ▲3.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 467 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for S2W Payments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲101 | 14.79 ▲0.20 | 1.65 ▲0.05 | 42.14 ▼3.08 |
Dashboard /wp-admin | 2,228 ▲51 | 5.66 ▲0.08 | 83.27 ▼11.44 | 37.35 ▼5.00 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.23 ▲0.21 | 38.40 ▲1.77 | 34.91 ▼2.30 |
Add New Post /wp-admin/post-new.php | 1,564 ▲15 | 23.17 ▲4.98 | 643.91 ▼19.23 | 61.38 ▼9.43 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.31 ▲0.16 | 104.37 ▼6.31 | 46.06 ▼0.52 |
Search Payments /wp-admin/admin.php?page=s2w-payments | 864 | 1.81 | 26.65 | 41.42 |
Settings /wp-admin/admin.php?page=s2w-payments-settings | 1,065 | 1.74 | 24.43 | 38.84 |
Import to WooCommerce /wp-admin/admin.php?page=s2w-payments-import-to-wc | 849 | 1.81 | 26.49 | 25.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=s2w-payments
- > Warning in wp-content/plugins/s2w-payments/admin/class-s2w-payments-admin.php+470
array_reverse() expects parameter 1 to be array, bool given
SRP 50% from 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
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/s2w-payments/admin/partials/settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/s2w-payments/admin/partials/payments.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/s2w-payments/admin/partials/import-to-wc.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: woocommerce, square, import orders
s2w-payments/s2w-payments.php Passed 13 tests
This is the main PHP file of "S2W Payments" version 1.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
137 characters long description:
Search fullfilled payments from Square and import them to WooCommerce as orders by matching product SKU's on both Square and WooCommerce.
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
Everything looks great! No dangerous files found in this plugin53,116 lines of code in 457 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 444 | 8,496 | 44,302 | 50,160 |
JavaScript | 4 | 371 | 137 | 1,851 |
Markdown | 3 | 187 | 0 | 978 |
JSON | 2 | 0 | 0 | 91 |
CSS | 3 | 3 | 8 | 18 |
YAML | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 9.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 473.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 435 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 435 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5,186 | |
▷ Static methods | 13 | 0.25% |
▷ Public methods | 5,178 | 99.85% |
▷ Protected methods | 1 | 0.02% |
▷ Private methods | 7 | 0.13% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected