Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.03MB] [CPU: ▼157.31ms] Passed 4 tests
A check of server-side resources used by Nepal PayTime
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.67 ▼0.17 | 23.17 ▼8.20 |
Dashboard /wp-admin | 3.08 ▲0.02 | 50.73 ▲8.54 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 42.65 ▼1.10 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 89.16 ▼614.63 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 25.98 ▼5.31 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Nepal PayTime
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,249 ▼347 | 15.68 ▲0.16 | 0.43 ▼8.32 | 8.93 ▼39.99 |
Dashboard /wp-admin | 2,966 ▲72 | 6.13 ▲0.26 | 176.40 ▲44.63 | 117.77 ▲0.27 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.69 ▼0.01 | 64.83 ▲0.25 | 87.08 ▼9.20 |
Add New Post /wp-admin/post-new.php | 1,501 ▼171 | 18.84 ▲0.01 | 368.41 ▼20.48 | 112.73 ▲4.68 |
Media Library /wp-admin/upload.php | 1,814 ▲4 | 5.00 ▼0.00 | 153.61 ▼1.08 | 117.61 ▼0.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/nepal-paytime/paytime.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/nepal-paytime/inc/paytime-gateway.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: woocommerce, payment, paytime, wordpress
nepal-paytime/paytime.php 77% from 13 tests
Analyzing the main PHP file in "Nepal PayTime" version 1.0.0
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("nepal-paytime.php" instead of "paytime.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected402 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 77 | 70 | 315 |
JavaScript | 2 | 5 | 6 | 46 |
CSS | 1 | 0 | 0 | 41 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/paytime.png | 18.75KB | 8.00KB | ▼ 57.33% |