Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼151.33ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Phone Payments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 39.68 ▼7.59 |
Dashboard /wp-admin | 3.07 ▲0.01 | 53.41 ▼37.96 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 52.48 ▼13.05 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 111.16 ▼546.70 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 42.69 ▼6.63 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Phone Payments
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲71 | 15.94 ▲0.04 | 12.37 ▼3.02 | 48.91 ▼15.36 |
Dashboard /wp-admin | 2,975 ▲43 | 6.14 ▲0.24 | 150.02 ▼49.37 | 119.11 ▼23.08 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.02 | 74.76 ▼5.32 | 93.49 ▼15.12 |
Add New Post /wp-admin/post-new.php | 1,620 ▼63 | 21.05 ▲4.34 | 337.21 ▼119.83 | 112.65 ▼13.15 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.07 ▲0.05 | 176.43 ▲5.45 | 129.69 ▼10.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-phone-payments/woocommerce-phone-payments.php:57
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Requires at least: The plugin version is formatted incorrectly
woocommerce-phone-payments/woocommerce-phone-payments.php Passed 13 tests
The main PHP file in "WooCommerce Phone Payments" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
83 characters long description:
Adds the ability to add payments to Woocommerce orders from the order admin screen.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected598 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 98 | 100 | 436 |
JSON | 3 | 1 | 0 | 102 |
PHP | 1 | 16 | 18 | 33 |
Markdown | 1 | 11 | 0 | 27 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin