Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼143.55ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Payment Gateway - CCBill
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 32.64 ▼1.08 |
Dashboard /wp-admin | 3.06 ▲0.01 | 44.14 ▲0.49 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 45.45 ▼2.62 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 88.78 ▼567.00 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 32.51 ▼3.49 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WooCommerce Payment Gateway - CCBill: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,702 ▲130 | 16.28 ▲0.24 | 9.33 ▼1.21 | 49.57 ▲0.51 |
Dashboard /wp-admin | 2,989 ▲52 | 6.14 ▲0.12 | 157.51 ▲1.74 | 119.51 ▲9.69 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.01 | 68.64 ▼4.67 | 83.16 ▼48.69 |
Add New Post /wp-admin/post-new.php | 1,615 ▼55 | 21.37 ▲2.01 | 293.89 ▼135.38 | 103.94 ▼10.34 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.07 ▲0.03 | 153.88 ▼3.26 | 116.21 ▲5.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
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 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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 add_action() in wp-content/plugins/woocommerce-payment-gateway-ccbill/wc-gateway-ccbill.php:17
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== woocommerce-payment-gateway-ccbill ===
) - Screenshots: A description for screenshot #1 is required in woocommerce-payment-gateway-ccbill/assets to your readme.txt
woocommerce-payment-gateway-ccbill/wc-gateway-ccbill.php 92% from 13 tests
The principal PHP file in "WooCommerce Payment Gateway - CCBill" v. 1.4.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-payment-gateway-ccbill.php" instead of "wc-gateway-ccbill.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected473 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 161 | 163 | 473 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 80.00 |
▷ Minimum class complexity | 80.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 8.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin