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
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.33ms] Passed 4 tests
A check of server-side resources used by HB Customer Send ATMCode To Administrator for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.85 ▼0.01 |
Dashboard /wp-admin | 3.35 ▲0.04 | 50.51 ▼5.27 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 50.36 ▼3.42 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.05 ▼5.77 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.49 ▼2.84 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
HB Customer Send ATMCode To Administrator for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.22 ▼1.42 | 1.95 ▼0.03 | 41.93 ▼2.50 |
Dashboard /wp-admin | 2,209 ▲24 | 5.86 ▲0.05 | 103.55 ▼13.11 | 43.22 ▼0.69 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.03 | 33.59 ▼3.32 | 32.59 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,528 ▼5 | 23.37 ▲0.01 | 681.05 ▼4.60 | 54.56 ▼4.26 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.18 ▼0.06 | 98.38 ▼3.42 | 44.32 ▼1.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/hb-customer-send-atmcode-to-administrator-for-woocommerce/page/HB-SendMessageView.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/hb-customer-send-atmcode-to-administrator-for-woocommerce/page/HB-sendMessage.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/hb-customer-send-atmcode-to-administrator-for-woocommerce/page/HB-Settings.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 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
1 plugin tags: atm
hb-customer-send-atmcode-to-administrator-for-woocommerce/hb-customer-send-atmcode-to-administrator-for-woocommerce.php Passed 13 tests
Analyzing the main PHP file in "HB Customer Send ATMCode To Administrator for WooCommerce" version 0.1.3
63 characters long description:
A Simple Customer Send ATMCode To Administrator for WooCommerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected495 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 65 | 28 | 410 |
CSS | 1 | 9 | 0 | 54 |
JavaScript | 1 | 10 | 0 | 31 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 61.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 38.46% |
Functions | 7 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 7 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin