Benchmarks
Plugin footprint 83% from 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.26ms] Passed 4 tests
An overview of server-side resources used by CampTix TrustPay Payment Gateway
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 41.47 ▲0.60 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.83 ▼4.61 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.59 ▼3.76 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.69 ▼1.28 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.49 ▲2.21 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by CampTix TrustPay Payment Gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲68 | 13.34 ▼1.42 | 1.85 ▼0.19 | 38.00 ▼12.47 |
Dashboard /wp-admin | 2,206 ▲27 | 4.85 ▼0.09 | 106.01 ▼10.61 | 41.68 ▼1.51 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.02 | 40.75 ▲3.09 | 34.93 ▼0.50 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 18.34 ▼4.99 | 604.66 ▼67.21 | 52.43 ▼0.67 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.22 ▲0.03 | 92.24 ▼7.37 | 43.40 ▲2.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WI_Trustpay' not found in wp-content/plugins/camptix-trustpay/wi-trustpay-response.php:5
- > PHP Fatal error
Uncaught Error: Class 'CampTix_Payment_Method' not found in wp-content/plugins/camptix-trustpay/payment-trustpay.php:2
- > PHP Fatal error
Uncaught Error: Class 'WI_Trustpay' not found in wp-content/plugins/camptix-trustpay/wi-trustpay-request.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: trustpay, camptix
camptix-trustpay/camptix-trustpay.php Passed 13 tests
The main PHP file in "CampTix TrustPay Payment Gateway" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
TrustPay Payment Gateway for CampTix Event Ticketing.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected408 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 109 | 65 | 408 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 4.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 2 | 9.52% |
▷ Public methods | 15 | 71.43% |
▷ Protected methods | 6 | 28.57% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 14 | 100.00% |
▷ Public constants | 14 | 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 were not PNG files found in your plugin