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.08MB] [CPU: ▼2.45ms] Passed 4 tests
This is a short check of server-side resources used by Cashfree Quick Button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.09 | 44.59 ▲4.06 |
Dashboard /wp-admin | 3.42 ▲0.07 | 53.27 ▼3.32 |
Posts /wp-admin/edit.php | 3.53 ▲0.14 | 51.18 ▼1.78 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.07 | 87.05 ▼6.93 |
Media Library /wp-admin/upload.php | 3.34 ▲0.07 | 37.73 ▲2.24 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Cashfree Quick Button: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲148 | 13.83 ▼0.32 | 8.41 ▲6.66 | 42.73 ▼2.39 |
Dashboard /wp-admin | 2,214 ▲37 | 5.62 ▲0.03 | 82.78 ▼18.08 | 37.93 ▼5.79 |
Posts /wp-admin/edit.php | 2,113 ▲16 | 1.99 ▲0.02 | 39.76 ▲3.81 | 36.68 ▼0.44 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.84 ▲0.09 | 649.94 ▼27.64 | 56.18 ▼3.29 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.21 ▲0.01 | 97.74 ▼12.09 | 48.25 ▲2.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cashfree-quick-button/trunk/cashfree-quick-button.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cashfree-quick-button/cashfree-quick-button.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: simple, button, wp, cashfree, payments
cashfree-quick-button/cashfree-quick-button.php Passed 13 tests
The entry point to "Cashfree Quick Button" version 2.0.0 is a PHP file that has certain tags in its header comment area
49 characters long description:
Cashfree Button plugin for Wordpress by Cashfree.
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
There were no executable files found in this plugin563 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 104 | 125 | 544 |
Markdown | 1 | 9 | 0 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 50 | 92.59% |
▷ Protected methods | 4 | 7.41% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/assets/icon-256x256.png | 4.17KB | 2.70KB | ▼ 35.31% |
trunk/images/logo.png | 22.03KB | 6.04KB | ▼ 72.59% |
assets/images/logo.png | 22.03KB | 6.04KB | ▼ 72.59% |
images/logo.png | 22.03KB | 6.04KB | ▼ 72.59% |
trunk/assets/images/logo.png | 22.03KB | 6.04KB | ▼ 72.59% |