Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼651.46ms] Passed 4 tests
Analyzing server-side resources used by Mistralpay Payment Gateway for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 41.90 ▲22.11 |
Dashboard /wp-admin | 3.12 ▲0.07 | 44.76 ▼4.35 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 51.60 ▲4.77 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 101.88 ▼2,607.93 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 38.47 ▲1.66 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Mistralpay Payment Gateway for Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.94 ▲0.42 | 10.98 ▼0.27 | 53.83 ▼2.25 |
Dashboard /wp-admin | 2,967 ▲36 | 5.90 ▼0.21 | 155.04 ▲6.19 | 122.33 ▲15.85 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 70.61 ▼5.09 | 93.26 ▼6.21 |
Add New Post /wp-admin/post-new.php | 1,615 ▼68 | 21.46 ▲2.79 | 297.28 ▼114.42 | 121.69 ▲1.34 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▲0.02 | 160.82 ▼3.39 | 131.04 ▲8.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mistral-pay-woocommerce-payment-gateway/class-wc-gateway-mistralpay.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tested up to: Invalid version format
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== mistral-pay-woocommerce-payment-gateway ===
)
mistral-pay-woocommerce-payment-gateway/class-wc-gateway-mistralpay.php 85% from 13 tests
The main file in "Mistralpay Payment Gateway for Woocommerce" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Version: The plugin version was missing
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mistral-pay-woocommerce-payment-gateway.php" instead of "class-wc-gateway-mistralpay.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin315 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 37 | 68 | 315 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin