84% customer-reviews-by-revukangaroo

Code Review | Customer Reviews by Revukangaroo

WordPress plugin Customer Reviews by Revukangaroo scored 84% from 54 tests.

About plugin

  • Plugin page: customer-reviews-...
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.8.1
  • WordPress version: 6.3.1
  • First release: Jul 7, 2016
  • Latest release: Sep 27, 2021
  • Number of updates: 20
  • Update frequency: every 95.4 days
  • Top authors: revukangaroo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 2,490 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.24ms] Passed 4 tests

This is a short check of server-side resources used by Customer Reviews by Revukangaroo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.46 ▼1.07
Dashboard /wp-admin3.33 ▲0.0342.47 ▼3.22
Posts /wp-admin/edit.php3.38 ▲0.0246.76 ▼2.22
Add New Post /wp-admin/post-new.php5.91 ▲0.0390.35 ▼2.43
Media Library /wp-admin/upload.php3.25 ▲0.0235.79 ▲2.38
Review API Key /wp-admin/options-general.php?page=review-api-key3.2229.69

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Customer Reviews by Revukangaroo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.16 ▼1.521.73 ▼0.4444.49 ▼1.41
Dashboard /wp-admin2,212 ▲245.88 ▲1.02129.12 ▲26.5848.67 ▲4.67
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0239.18 ▼0.9437.00 ▲0.41
Add New Post /wp-admin/post-new.php1,533 ▼923.23 ▲4.93597.70 ▼10.4347.72 ▼2.46
Media Library /wp-admin/upload.php1,394 ▲94.23 ▲0.0196.36 ▼8.0641.24 ▼3.58
Review API Key /wp-admin/options-general.php?page=review-api-key7742.0624.6825.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/customer-reviews-by-revukangaroo/apireviews-template.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customer-reviews-by-revukangaroo/customer-reviews-by-revukangaroo.php:126

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt might help

customer-reviews-by-revukangaroo/customer-reviews-by-revukangaroo.php 92% from 13 tests

The main PHP file in "Customer Reviews by Revukangaroo" ver. 1.2.5 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 221 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin376 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP213427373
CSS1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin