Benchmarks
Plugin footprint 65% 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.30MB] [CPU: ▼1.00ms] Passed 4 tests
An overview of server-side resources used by NetPay Payment Gateway API Module For WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 41.66 ▲1.15 |
Dashboard /wp-admin | 3.60 ▲0.30 | 51.02 ▲1.71 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 50.29 ▼1.48 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.30 | 88.84 ▼5.38 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 40.04 ▲2.98 |
Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_np_token |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for NetPay Payment Gateway API Module For WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.41 ▼0.30 | 1.71 ▼0.26 | 41.55 ▼3.28 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▼0.03 | 90.70 ▲3.60 | 41.59 ▼1.70 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.06 | 42.86 ▲0.84 | 41.42 ▲4.29 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 21.10 ▼2.03 | 607.51 ▼80.69 | 54.16 ▲0.35 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.23 ▲0.09 | 99.54 ▼5.94 | 43.52 ▼3.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_np_token
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/netpay-payment-gateway-api-module-for-woocommerce/index.php:13
- > 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 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== NetPay Payment Gateway API Module For WooCommerce===
) - Donate link: Invalid URI ("")
- Screenshots: These screenshots have no corresponding images in /assets: #1 (NetPay Logo), #2 (Checkout Sample), #3 (WooCommerce Settings), #4 (Plugin Configuration)
netpay-payment-gateway-api-module-for-woocommerce/index.php 92% from 13 tests
Analyzing the main PHP file in "NetPay Payment Gateway API Module For WooCommerce" version 1.0.5
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("netpay-payment-gateway-api-module-for-woocommerce.php" instead of "index.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
Good job! No executable or dangerous file extensions detected1,881 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 356 | 421 | 1,874 |
CSS | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 85.50 |
▷ Minimum class complexity | 50.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 72 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 57 | 79.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 20.83% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin