Benchmarks
Plugin footprint 83% from 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.15MB] [CPU: ▼3.51ms] Passed 4 tests
A check of server-side resources used by CamPay Shortcode Payment Gateway
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 38.93 ▼6.85 |
Dashboard /wp-admin | 3.45 ▲0.15 | 47.23 ▼0.95 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 49.70 ▼2.07 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 85.01 ▼4.18 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 42.06 ▲4.78 |
Campay Settings /wp-admin/options-general.php?page=campay_shortcode_gateway | 3.34 | 32.55 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CamPay Shortcode Payment Gateway
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲130 | 13.52 ▼0.88 | 8.13 ▲6.17 | 42.48 ▲2.16 |
Dashboard /wp-admin | 2,214 ▲34 | 5.58 ▼0.14 | 84.30 ▼9.77 | 41.91 ▲1.00 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.02 ▲0.03 | 36.71 ▼0.80 | 35.81 ▼2.12 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.02 ▼0.10 | 680.67 ▲65.97 | 57.70 ▲12.89 |
Media Library /wp-admin/upload.php | 1,416 ▲22 | 4.24 ▲0.01 | 100.71 ▼8.74 | 45.86 ▼1.97 |
Campay Settings /wp-admin/options-general.php?page=campay_shortcode_gateway | 812 | 2.03 | 22.96 | 30.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/campay-shortcode-payment-gateway/campay_shortcode_gateway.php:12
- > 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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Contributors: Plugin contributors not specified
- Screenshots: Screenshot #1 (Admin dashboard screenshot-1.png) image not found
campay-shortcode-payment-gateway/campay_shortcode_gateway.php 92% from 13 tests
"CamPay Shortcode Payment Gateway" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("campay-shortcode-payment-gateway.php" instead of "campay_shortcode_gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin789 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 125 | 46 | 572 |
CSS | 1 | 5 | 3 | 111 |
JavaScript | 1 | 23 | 45 | 106 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 49.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
There are no PNG files in this plugin