73% reviewdrop

Code Review | Reviewdrop for Wordpress - Invite users to review with Woocommerce

WordPress plugin Reviewdrop for Wordpress - Invite users to review with Woocommerce scored73%from 54 tests.

About plugin

  • Plugin page: reviewdrop
  • Plugin version: 1.8.0
  • PHP compatiblity: 7.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Jan 30, 2019
  • Latest release: Oct 30, 2022
  • Number of updates: 28
  • Update frequency: every 48.9 days
  • Top authors: reviewdrop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,006 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.21ms] Passed 4 tests

An overview of server-side resources used by Reviewdrop for Wordpress - Invite users to review with Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.84 ▲1.82
Dashboard /wp-admin3.32 ▼0.0247.88 ▼16.95
Posts /wp-admin/edit.php3.38 ▲0.0246.60 ▼6.79
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.51 ▼10.17
Media Library /wp-admin/upload.php3.25 ▲0.0237.02 ▲1.06
Reviewdrop /wp-admin/options-general.php?page=reviewdrop3.1937.85

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Reviewdrop for Wordpress - Invite users to review with Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1114.28 ▼0.391.85 ▲0.0146.75 ▲7.54
Dashboard /wp-admin2,206 ▲285.62 ▼0.0786.30 ▼23.6138.26 ▼2.73
Posts /wp-admin/edit.php2,108 ▲82.03 ▲0.0233.51 ▼7.4936.86 ▼0.28
Add New Post /wp-admin/post-new.php1,533 ▲422.98 ▼0.14643.70 ▼53.8055.98 ▼7.46
Media Library /wp-admin/upload.php1,405 ▲54.21 ▲0.0398.12 ▼8.6846.15 ▲2.33
Reviewdrop /wp-admin/options-general.php?page=reviewdrop1,0782.1222.9828.56

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 24 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=reviewdrop
    • > Notice in wp-content/plugins/reviewdrop/admin/class-reviewdrop-admin.php+344
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/reviewdrop/admin/partials/reviewdrop-admin-display.php
  • 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/reviewdrop/admin/class-reviewdrop-admin.php:107

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 97% 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
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
You can take inspiration from this readme.txt

reviewdrop/reviewdrop.php Passed 13 tests

The principal PHP file in "Reviewdrop for Wordpress - Invite users to review with Woocommerce" v. 1.8.0 is loaded by WordPress automatically on each request
53 characters long description:
Add business reviews to your website with Reviewdrop.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin439 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP11193483436
JavaScript12273
CSS1040

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods1676.19%
▷ Protected methods00.00%
▷ Private methods523.81%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected