Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.64ms] Passed 4 tests
Analyzing server-side resources used by CampTix TrustCard Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.93 ▼6.69 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.82 ▲0.43 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.35 ▲5.24 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.95 ▼0.87 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.12 ▲0.57 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for CampTix TrustCard Payment Gateway
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.34 ▲0.10 | 1.73 ▼0.31 | 48.95 ▲4.54 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▲0.05 | 90.65 ▼2.47 | 37.97 ▼2.41 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.03 ▲0.08 | 40.14 ▲3.70 | 36.68 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.71 ▲0.48 | 638.46 ▼16.30 | 55.40 ▼9.26 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▲0.10 | 96.39 ▼7.90 | 47.68 ▼0.60 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WI_Trustcard' not found in wp-content/plugins/camptix-trustcard/wi-trustcard-request.php:5
- > PHP Fatal error
Uncaught Error: Class 'WI_Trustcard' not found in wp-content/plugins/camptix-trustcard/wi-trustcard-response.php:5
- > PHP Fatal error
Uncaught Error: Class 'CampTix_Payment_Method' not found in wp-content/plugins/camptix-trustcard/payment-trustcard.php:2
- > 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 uses markdown syntax to describe your plugin to the world
2 plugin tags: trustpay, camptix
camptix-trustcard/camptix-trustcard.php Passed 13 tests
The main PHP file in "CampTix TrustCard Payment Gateway" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
TrustCard 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 detected418 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 109 | 69 | 418 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 22.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 5.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 15 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 15 | 100.00% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin