Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼117.21ms] Passed 4 tests
Analyzing server-side resources used by Maakapay Invoice Payer for Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.71 ▼9.35 |
Dashboard /wp-admin | 3.31 ▼0.08 | 44.31 ▼453.09 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.17 ▼4.66 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.71 ▲3.73 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.64 ▼1.72 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Maakapay Invoice Payer for Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 13.67 ▼0.71 | 1.89 ▲0.11 | 46.48 ▲5.72 |
Dashboard /wp-admin | 2,203 ▲12 | 5.83 ▲0.93 | 96.63 ▼5.32 | 38.34 ▼2.47 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.02 | 39.19 ▼1.60 | 35.09 ▲0.76 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.15 ▼0.05 | 591.59 ▼103.34 | 48.40 ▼4.35 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.21 ▲0.01 | 94.38 ▼14.90 | 41.18 ▲0.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- 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 no errors were found, 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
The following issues need your attention
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/maakapay-invoice-payer-for-woocommerce/public/partials/maakapay-invoice-payer-for-woocommerce-public-payment-decline.php:15
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/maakapay-invoice-payer-for-woocommerce/admin/partials/maakapay-invoice-payer-for-woocommerce-admin-transaction-detail.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/maakapay-invoice-payer-for-woocommerce/public/partials/maakapay-invoice-payer-for-woocommerce-public-payment-form.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/maakapay-invoice-payer-for-woocommerce/admin/partials/maakapay-invoice-payer-for-woocommerce-admin-settings.php:35
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/maakapay-invoice-payer-for-woocommerce/admin/partials/maakapay-invoice-payer-for-woocommerce-admin-display.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/maakapay-invoice-payer-for-woocommerce/public/partials/maakapay-invoice-payer-for-woocommerce-public-payment-cancel.php:15
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/maakapay-invoice-payer-for-woocommerce/admin/partials/maakapay-invoice-payer-for-woocommerce-admin-display.php on line 15
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/maakapay-invoice-payer-for-woocommerce/admin/partials/maakapay-invoice-payer-for-woocommerce-admin-display.php on line 15
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/maakapay-invoice-payer-for-woocommerce/admin/partials/maakapay-invoice-payer-for-woocommerce-admin-transaction-detail.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/maakapay-invoice-payer-for-woocommerce/public/partials/maakapay-invoice-payer-for-woocommerce-public-payment-success.php:16
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: nabil bank payment gateway, nabil bank, payment gateway, npr payment gateway, maakapay...
maakapay-invoice-payer-for-woocommerce/maakapay-invoice-payer-for-woocommerce.php 92% from 13 tests
"Maakapay Invoice Payer for Woocommerce" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,585 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 447 | 656 | 1,329 |
CSS | 5 | 16 | 13 | 119 |
JavaScript | 4 | 65 | 13 | 118 |
SVG | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 13.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 3 | 7.50% |
▷ Public methods | 35 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.50% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |
public/img/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |