Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼139.08ms] Passed 4 tests
Analyzing server-side resources used by SEPA.net
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 33.77 ▲5.44 |
Dashboard /wp-admin | 3.07 ▲0.02 | 50.30 ▲6.51 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 41.71 ▼4.17 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 90.43 ▼557.81 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 34.65 ▲0.22 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
SEPA.net: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.75 ▲0.14 | 11.14 ▲1.54 | 46.90 ▼6.65 |
Dashboard /wp-admin | 2,967 ▲39 | 5.93 ▼0.02 | 147.24 ▼46.02 | 106.58 ▼5.08 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.72 ▼0.00 | 67.55 ▲1.26 | 81.80 ▼8.08 |
Add New Post /wp-admin/post-new.php | 1,672 ▼0 | 18.78 ▼0.10 | 362.23 ▼28.48 | 104.62 ▲0.19 |
Media Library /wp-admin/upload.php | 1,810 ▲62 | 5.03 ▲0.02 | 146.45 ▼12.89 | 111.92 ▼1.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
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
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 fix the following items
- 2× 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/sepanet/woocommerce-sepanet.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sepanet/woocommerce-sepanet-gateway.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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
sepanet/woocommerce-sepanet-gateway.php 92% from 13 tests
"SEPA.net" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sepanet.php" instead of "woocommerce-sepanet-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin581 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 170 | 156 | 559 |
JavaScript | 1 | 4 | 0 | 22 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin