83% woocommerce-ripple-json-rpc

Code Review | WooCommerce - Ripple (JSON RPC)

WordPress plugin WooCommerce - Ripple (JSON RPC) scored83%from 54 tests.

About plugin

  • Plugin page: woocommerce-rippl...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2014
  • Latest release: Jul 19, 2014
  • Number of updates: 9
  • Update frequency: every 5.8 days
  • Top authors: orzfly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /800 total downloads

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: ▼6.90ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce - Ripple (JSON RPC)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.80 ▼1.44
Dashboard /wp-admin3.31 ▼0.0447.92 ▼19.63
Posts /wp-admin/edit.php3.36 ▲0.0052.20 ▲6.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.96 ▼6.09
Media Library /wp-admin/upload.php3.23 ▲0.0037.46 ▼0.42

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce - Ripple (JSON RPC)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.29 ▼1.165.34 ▲3.6643.64 ▼0.55
Dashboard /wp-admin2,221 ▲184.84 ▼0.1999.96 ▼25.1339.14 ▼6.92
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0340.25 ▲2.3637.09 ▲0.87
Add New Post /wp-admin/post-new.php1,545 ▲1923.08 ▲5.64621.18 ▼68.5155.77 ▼8.70
Media Library /wp-admin/upload.php1,391 ▼94.19 ▼0.0798.08 ▼19.2043.08 ▼5.10

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 does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-ripple-json-rpc/ripple.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === woocommerce-ripple-json-rpc === )
The official readme.txt is a good inspiration

woocommerce-ripple-json-rpc/ripple.php 85% from 13 tests

The entry point to "WooCommerce - Ripple (JSON RPC)" version 1.0.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woocommerce-ripple-json-rpc.php" instead of "ripple.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("3.9" instead of "3.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin422 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4104128422

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity12.33
▷ Minimum class complexity4.00
▷ Maximum class complexity21.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1794.44%
▷ Protected methods15.56%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
ripple.png3.46KB2.07KB▼ 40.20%