Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.18MB] [CPU: ▼20.77ms] Passed 4 tests
An overview of server-side resources used by TheCartPress - Quickpay Payment Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.78 ▼7.53 |
Dashboard /wp-admin | 3.20 ▼0.14 | 28.02 ▼36.75 |
Posts /wp-admin/edit.php | 3.27 ▼0.09 | 36.85 ▼10.77 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.45 | 70.22 ▼28.03 |
Media Library /wp-admin/upload.php | 3.21 ▼0.02 | 33.29 ▼4.51 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
recovery_mode_email_last_sent |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for TheCartPress - Quickpay Payment Gateway
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,459 ▼1,302 | 12.89 ▼1.75 | 1.94 ▲0.01 | 39.82 ▼4.81 |
Dashboard /wp-admin | 852 ▼1,313 | 1.38 ▼4.25 | 14.48 ▼85.51 | 23.74 ▼22.34 |
Posts /wp-admin/edit.php | 863 ▼1,237 | 1.14 ▼0.86 | 7.77 ▼30.63 | 22.03 ▼16.52 |
Add New Post /wp-admin/post-new.php | 589 ▼957 | 1.73 ▼21.89 | 22.90 ▼650.81 | 0.20 ▼49.64 |
Media Library /wp-admin/upload.php | 748 ▼652 | 1.73 ▼2.50 | 20.50 ▼98.91 | 19.99 ▼25.32 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- recovery_mode_email_last_sent
- theysaidso_admin_options
Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: tcp, thecartpress quickpay, payment gateway, quickpay, payment...
thecartpress-quickpay-payment-gateway/quickpay.php 92% from 13 tests
The primary PHP file in "TheCartPress - Quickpay Payment Gateway" version 2.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("thecartpress-quickpay-payment-gateway.php" instead of "quickpay.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin273 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 44 | 37 | 273 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 10 | 47.62% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin