Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼148.66ms] Passed 4 tests
Analyzing server-side resources used by FONDY — Restrict Content Pro Payment Gateway integration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 40.31 ▲16.42 |
Dashboard /wp-admin | 3.07 ▲0.01 | 45.32 ▼5.27 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 45.69 ▼7.40 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 96.01 ▼573.88 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 29.44 ▼8.09 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
FONDY — Restrict Content Pro Payment Gateway integration: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,718 ▲122 | 15.80 ▲0.18 | 9.12 ▲0.53 | 53.88 ▲0.38 |
Dashboard /wp-admin | 2,985 ▲54 | 5.84 ▼0.06 | 129.61 ▼19.50 | 108.10 ▼10.35 |
Posts /wp-admin/edit.php | 2,754 ▲18 | 2.70 ▲0.00 | 65.86 ▼7.51 | 94.44 ▼2.73 |
Add New Post /wp-admin/post-new.php | 1,625 ▼2,119 | 21.29 ▲2.13 | 288.47 ▼194.38 | 115.33 ▲0.02 |
Media Library /wp-admin/upload.php | 1,825 ▲18 | 5.02 ▼0.01 | 159.36 ▼7.95 | 129.36 ▲7.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
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)
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 2× 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/fondy-rcp-gateway/fondy/fondy-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/fondy-rcp-gateway/index.php:16
- > 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 Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: merchant, restrict content pro, payments, payment gateway, online payment
fondy-rcp-gateway/index.php 77% from 13 tests
This is the main PHP file of "FONDY — Restrict Content Pro Payment Gateway integration" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("fondy-rcp-gateway.php" instead of "index.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
No dangerous file extensions were detected440 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 68 | 44 | 440 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 26.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 9.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 7 | |
▷ Static methods | 2 | 28.57% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 6 | |
▷ Global constants | 1 | 16.67% |
▷ Class constants | 5 | 83.33% |
▷ Public constants | 5 | 100.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
There are no PNG files in this plugin