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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.58ms] Passed 4 tests
This is a short check of server-side resources used by Traveler Payhere
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.21 ▼5.00 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.62 ▼4.33 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.92 ▼2.41 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 91.41 ▲3.04 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.21 ▲1.41 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Traveler Payhere
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.22 ▼1.06 | 1.70 ▼0.31 | 44.87 ▼3.24 |
Dashboard /wp-admin | 2,206 ▲15 | 5.91 ▲1.07 | 107.53 ▼10.22 | 42.29 ▼4.08 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.03 ▲0.01 | 38.95 ▲0.90 | 35.80 ▲1.99 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 18.10 ▲0.41 | 600.96 ▼82.92 | 76.50 ▲22.98 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.26 ▲0.05 | 94.06 ▼10.23 | 42.40 ▼2.25 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
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 | 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 'STAbstactPaymentGateway' not found in wp-content/plugins/traveler-payhere/inc/payhere.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/traveler-payhere/traveler-payhere.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/traveler-payhere/views/payhere.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: lkr, sri lanka, payhere, payment, traveler...
traveler-payhere/traveler-payhere.php Passed 13 tests
The main PHP script in "Traveler Payhere" version 1.0.0 is automatically included on every request by WordPress
38 characters long description:
This plugin is used for Traveler Theme
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 plugin346 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 141 | 9 | 334 |
Markdown | 1 | 7 | 0 | 12 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 28 | |
▷ Static methods | 3 | 10.71% |
▷ Public methods | 26 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.14% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/us.png | 9.55KB | 3.79KB | ▼ 60.31% |