47% reeview

Code Review | Reeview

WordPress plugin Reeview scored 47% from 54 tests.

About plugin

  • Plugin page: reeview
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Sep 24, 2020
  • Latest release: Sep 24, 2020
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: reeview (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 286 total downloads

Benchmarks

Plugin footprint 30% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Reeview
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.33 ▲3.49
Dashboard /wp-admin3.34 ▲0.0351.15 ▲1.61
Posts /wp-admin/edit.php3.39 ▲0.0344.46 ▼2.79
Add New Post /wp-admin/post-new.php5.92 ▲0.03102.57 ▲8.87
Media Library /wp-admin/upload.php3.26 ▲0.0342.64 ▲9.15
Reeview /wp-admin/options-general.php?page=reeview3.2038.45

Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • Illegal file modification found: 1 file (3.18KB) outside of "wp-content/plugins/reeview/" and "wp-content/uploads/"
    • (new file) wp-content/reeview.log
Filesystem: 39 new files
Database: 1 new table, 9 new options
New tables
reeview_products_status
New WordPress options
widget_theysaidso_widget
widget_recent-posts
reeview_key
recovery_mode_email_last_sent
db_upgraded
reeview_option_name
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Reeview
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6813.14 ▼1.251.13 ▼0.6846.62 ▲2.27
Dashboard /wp-admin2,217 ▲295.90 ▲0.98113.36 ▼6.0742.62 ▼1.11
Posts /wp-admin/edit.php2,096 ▲72.06 ▲0.0736.53 ▼4.1235.74 ▼1.54
Add New Post /wp-admin/post-new.php1,529 ▼423.20 ▼0.02736.46 ▲57.4056.00 ▲4.46
Media Library /wp-admin/upload.php1,396 ▲84.21 ▼0.11108.59 ▲2.2745.67 ▼0.14
Reeview /wp-admin/options-general.php?page=reeview7251.149.3559.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/reeview/includes/src/class-reeview-connector.php+96
    Trying to access array offset on value of type bool
  • Uninstaller has failed for this plugin, leaving 39 files (0.23MB) in the plugin directory
    • (new file) LICENSE.md
    • (new file) assets/banner-772x225.png
    • (new file) assets/banner-1544x500.png
    • (new file) README.md
    • (new file) assets/icon-128x128.png
    • (new file) assets/icon.svg
    • (new file) assets/screenshot-1.png
    • (new file) assets/icon-256x256.png
    • (new file) admin/class-reeview-admin.php
    • (new file) assets/screenshot-2.png
    • ...
  • This plugin does not fully uninstall, leaving 1 table in the database
    • reeview_products_status
  • This plugin did not uninstall successfully, leaving 13 options in the database
    • recovery_mode_email_last_sent
    • widget_recent-comments
    • reeview_site_id
    • widget_recent-posts
    • widget_theysaidso_widget
    • reeview_key
    • theysaidso_admin_options
    • vendor
    • db_upgraded
    • reeview_token
    • ...

Smoke tests 50% 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)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=reeview
    • > Error in wp-content/plugins/reeview/admin/class-reeview-admin.php+133
    Uncaught Error: Call to undefined function wc_get_attribute_taxonomies() in wp-content/plugins/reeview/admin/class-reeview-admin.php:133
    Stack trace:
    #0 wp-admin/includes/template.php(1824): Reeview_Admin->vendor_callback()
    #1 wp-admin/includes/template.php(1778): do_settings_fields()
    #2 wp-content/plugins/reeview/admin/class-reeview-admin.php(68): do_settings_sections()
    #3 wp-includes/class-wp-hook.php(310): Reeview_Admin->reeview_create_admin_page()
    #4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #5 wp-includes/plugin.php(517): WP_Hook->do_action()
    #6 wp-admin/admin.php(259): do_action()
    #7 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #8 {main}
    thrown

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
Almost there! Just fix the following items
  • 8× 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/reeview/includes/api/class-reeview-import.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reeview/includes/api/class-reeview-uninstall.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reeview/includes/src/class-reeview-order-created.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/reeview/includes/class-reeview-load-api.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reeview/includes/api/class-reeview-status.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reeview/includes/api/class-reeview-install.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/reeview/uninstall.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Reeview_Sync' not found in wp-content/plugins/reeview/includes/api/class-reeview-on-demand-sync.php:83

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Requires php: Version format is invalid
  • Donate link: Please fix this invalid URI: ""
  • Stable tag: Empty value
The official readme.txt might help

reeview/reeview.php 92% from 13 tests

The principal PHP file in "Reeview" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 277 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,579 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP272009701,223
Markdown2770345
SVG10011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity4.76
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods89
▷ Static methods3539.33%
▷ Public methods8292.13%
▷ Protected methods00.00%
▷ Private methods77.87%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants27
▷ Global constants1037.04%
▷ Class constants1762.96%
▷ Public constants17100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png22.88KB12.51KB▼ 45.34%
assets/icon-128x128.png4.09KB2.79KB▼ 31.75%
assets/screenshot-2.png13.82KB8.75KB▼ 36.70%
assets/icon-256x256.png10.29KB6.17KB▼ 40.05%
assets/banner-1544x500.png18.79KB9.30KB▼ 50.49%