Benchmarks
Plugin footprint Passed 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.00MB] [CPU: ▼142.28ms] Passed 4 tests
A check of server-side resources used by PayXpert for Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 38.13 ▲15.85 |
Dashboard /wp-admin | 3.06 ▲0.01 | 52.88 ▲7.57 |
Posts /wp-admin/edit.php | 3.11 ▼0.00 | 47.56 ▼9.98 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 92.38 ▼567.92 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 31.32 ▲1.20 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for PayXpert for Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲66 | 15.93 ▲0.23 | 12.56 ▲3.36 | 45.49 ▼1.66 |
Dashboard /wp-admin | 2,970 ▲36 | 5.83 ▼0.32 | 148.20 ▼15.85 | 108.62 ▼3.00 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.84 ▲0.12 | 73.16 ▼24.18 | 94.35 ▲2.30 |
Add New Post /wp-admin/post-new.php | 1,615 ▼68 | 21.19 ▲2.47 | 350.19 ▼61.85 | 111.71 ▲3.94 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▼0.01 | 161.92 ▼4.97 | 118.57 ▼5.94 |
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 successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-payxpert-gateway/gateway-payxpert.php:27
- > 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 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tested up to: Invalid plugin version format
- Requires at least: Invalid plugin version format
woo-payxpert-gateway/gateway-payxpert.php 92% from 13 tests
The main PHP file in "PayXpert for Woocommerce" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-payxpert-gateway.php" instead of "gateway-payxpert.php")
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 detected2,093 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 535 | 1,493 | 2,076 |
Markdown | 1 | 8 | 0 | 17 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 23.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 292 | |
▷ Static methods | 38 | 13.01% |
▷ Public methods | 277 | 94.86% |
▷ Protected methods | 1 | 0.34% |
▷ Private methods | 14 | 4.79% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 43 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 43 | 100.00% |
▷ Public constants | 43 | 100.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