84% cashfree-quick-button

Code Review | Cashfree Quick Button

WordPress plugin Cashfree Quick Button scored84%from 54 tests.

About plugin

  • Plugin page: cashfree-quick-bu...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.6
  • WordPress version: 6.3.1
  • First release: Feb 26, 2021
  • Latest release: May 26, 2021
  • Number of updates: 17
  • Update frequency: every 5.3 days
  • Top authors: devcashfree (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,399 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0944.59 ▲4.06
Dashboard /wp-admin3.42 ▲0.0753.27 ▼3.32
Posts /wp-admin/edit.php3.53 ▲0.1451.18 ▼1.78
Add New Post /wp-admin/post-new.php6.00 ▲0.0787.05 ▼6.93
Media Library /wp-admin/upload.php3.34 ▲0.0737.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

Browser metrics Passed 4 tests

Cashfree Quick Button: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲14813.83 ▼0.328.41 ▲6.6642.73 ▼2.39
Dashboard /wp-admin2,214 ▲375.62 ▲0.0382.78 ▼18.0837.93 ▼5.79
Posts /wp-admin/edit.php2,113 ▲161.99 ▲0.0239.76 ▲3.8136.68 ▼0.44
Add New Post /wp-admin/post-new.php1,539 ▲1323.84 ▲0.09649.94 ▼27.6456.18 ▼3.29
Media Library /wp-admin/upload.php1,410 ▲104.21 ▲0.0197.74 ▼12.0948.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

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


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.17
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.74
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods5092.59%
▷ Protected methods47.41%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
trunk/assets/icon-256x256.png4.17KB2.70KB▼ 35.31%
trunk/images/logo.png22.03KB6.04KB▼ 72.59%
assets/images/logo.png22.03KB6.04KB▼ 72.59%
images/logo.png22.03KB6.04KB▼ 72.59%
trunk/assets/images/logo.png22.03KB6.04KB▼ 72.59%