Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.19ms] Passed 4 tests
An overview of server-side resources used by Compare Payment
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.67 ▼5.14 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.62 ▼5.67 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.96 ▲5.97 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 94.95 ▼1.29 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.33 ▲3.33 |
Payments /wp-admin/edit.php?post_type=compare-payments | 3.30 | 33.58 |
Add New /wp-admin/post-new.php?post_type=compare-payments | 3.32 | 42.24 |
Server storage [IO: ▲0.27MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Compare Payment
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,965 ▲230 | 13.64 ▼0.74 | 8.51 ▲6.71 | 42.41 ▼2.43 |
Dashboard /wp-admin | 2,255 ▲64 | 5.85 ▲0.98 | 107.96 ▲1.98 | 78.57 ▲31.26 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.02 ▲0.01 | 38.83 ▼2.86 | 37.38 ▲1.27 |
Add New Post /wp-admin/post-new.php | 1,557 ▲19 | 17.76 ▼5.70 | 623.74 ▲13.60 | 51.75 ▲5.43 |
Media Library /wp-admin/upload.php | 1,437 ▲49 | 4.14 ▼0.09 | 107.06 ▲6.89 | 47.83 ▲4.86 |
Payments /wp-admin/edit.php?post_type=compare-payments | 1,096 | 1.96 | 32.64 | 31.79 |
Add New /wp-admin/post-new.php?post_type=compare-payments | 1,761 | 3.55 | 60.31 | 74.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
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)
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/compare-payment/public/partials/compare-payment-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: payment
compare-payment/compare-payment.php Passed 13 tests
The main PHP file in "Compare Payment" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
50 characters long description:
This is online transaction payment compare plugin.
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
Good job! No executable or dangerous file extensions detected9,077 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 1,045 | 15 | 8,240 |
PHP | 12 | 169 | 509 | 459 |
JavaScript | 3 | 87 | 148 | 378 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/ranger-mark.png | 0.20KB | 0.19KB | ▼ 6.83% |
admin/images/transaction.png | 0.55KB | 0.78KB | 0.00% |