Benchmarks
Plugin footprint 83% from 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.02MB] [CPU: ▼4.34ms] Passed 4 tests
An overview of server-side resources used by Maya Business Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.27 ▼0.79 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.93 ▼1.69 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.49 ▼1.32 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.64 ▼13.54 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.56 ▼0.48 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Maya Business Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲35 | 14.06 ▼0.65 | 1.75 ▲0.06 | 43.87 ▼1.35 |
Dashboard /wp-admin | 2,199 ▲22 | 5.51 ▼0.13 | 84.35 ▼16.23 | 37.88 ▼6.74 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▲0.01 | 39.44 ▲2.74 | 36.96 ▲3.08 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.71 ▲0.48 | 670.18 ▼34.72 | 57.97 ▼1.17 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▲0.02 | 98.26 ▼19.06 | 41.79 ▼6.62 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_price() in wp-content/plugins/paymaya-checkout-for-woocommerce/views/manual-capture.php:11
- > PHP Notice
Undefined variable: authorizationType in wp-content/plugins/paymaya-checkout-for-woocommerce/views/manual-capture.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paymaya-checkout-for-woocommerce/paymaya-top-level-hooks.php:107
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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 to be fixed:
- Contributors: Contributors not specified
paymaya-checkout-for-woocommerce/wc-paymaya-payment-gateway.php 85% from 13 tests
"Maya Business Plugin" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("paymaya-checkout-for-woocommerce.php" instead of "wc-paymaya-payment-gateway.php")
- Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.3.2")
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
There were no executable files found in this plugin1,486 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 328 | 191 | 1,343 |
JavaScript | 1 | 14 | 10 | 122 |
Markdown | 1 | 7 | 0 | 21 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 53.67 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 146.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 19 | |
▷ Named functions | 7 | 36.84% |
▷ Anonymous functions | 12 | 63.16% |
Constants | 23 | |
▷ Global constants | 23 | 100.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
No PNG files were detected