Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.90ms] Passed 4 tests
A check of server-side resources used by Appmax
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.02 ▼0.60 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.78 ▼9.76 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.39 ▼5.12 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.17 ▼4.12 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.98 ▲5.62 |
Server storage [IO: ▲0.54MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 84 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Appmax
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.65 ▼0.93 | 1.69 ▲0.07 | 39.55 ▲2.33 |
Dashboard /wp-admin | 2,206 ▲51 | 5.86 ▲0.17 | 107.06 ▼3.21 | 40.73 ▼3.67 |
Posts /wp-admin/edit.php | 2,089 ▲21 | 2.06 ▲0.03 | 38.38 ▲0.95 | 37.03 ▲2.95 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.05 ▲4.73 | 676.27 ▲40.52 | 61.00 ▼4.30 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.16 ▲0.00 | 94.85 ▲1.05 | 40.12 ▼0.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Parse error
syntax error, unexpected '=>' (T_DOUBLE_ARROW) in wp-content/plugins/appmax/includes/webhooks/class-appmax-payments-webhook-events.php on line 153
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/appmax/templates/views/admin/validate-message.php:4
- > PHP Parse error
syntax error, unexpected 'static' (T_STATIC) in wp-content/plugins/appmax/includes/core/class-appmax-payments-due-date-generator.php on line 49
- > PHP Parse error
syntax error, unexpected '=>' (T_DOUBLE_ARROW) in wp-content/plugins/appmax/includes/core/class-appmax-payments-scripts.php on line 142
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/appmax/templates/views/checkout/pix/pix-payment.php:2
- > PHP Parse error
syntax error, unexpected 'static' (T_STATIC) in wp-content/plugins/appmax/includes/validation/class-appmax-payments-validator.php on line 54
- > PHP Parse error
syntax error, unexpected '|', expecting ';' or '{' in wp-content/plugins/appmax/includes/core/class-appmax-payments-api.php on line 52
- > PHP Parse error
syntax error, unexpected 'static' (T_STATIC) in wp-content/plugins/appmax/includes/core/class-appmax-payments-post-information.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/appmax/templates/views/admin/lib-calendar-not-installed.php:3
- > PHP Parse error
syntax error, unexpected 'static' (T_STATIC) in wp-content/plugins/appmax/includes/core/class-appmax-payments-interest.php on line 51
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: woocommerce, payment, appmax
appmax/appmax-payments.php 92% from 13 tests
"Appmax" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("appmax.php" instead of "appmax-payments.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin8,551 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 413 | 336 | 4,869 |
PHP | 67 | 872 | 1,130 | 3,682 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 6 | 10.71% |
▷ Concrete classes | 50 | 89.29% |
▷ Final classes | 0 | 0.00% |
Methods | 244 | |
▷ Static methods | 58 | 23.77% |
▷ Public methods | 205 | 84.02% |
▷ Protected methods | 8 | 3.28% |
▷ Private methods | 31 | 12.70% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 66 | |
▷ Global constants | 8 | 12.12% |
▷ Class constants | 58 | 87.88% |
▷ Public constants | 58 | 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
There are no PNG files in this plugin