83% review-manager

Code Review | Review Manager

WordPress plugin Review Manager scored83%from 54 tests.

About plugin

  • Plugin page: review-manager
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-6.3.0
  • WordPress version: 6.3.1
  • First release: Apr 18, 2020
  • Latest release: Aug 19, 2023
  • Number of updates: 52
  • Update frequency: every 23.4 days
  • Top authors: matthewrubin (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /1,939 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼4.83ms] Passed 4 tests

An overview of server-side resources used by Review Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.72 ▼9.18
Dashboard /wp-admin3.42 ▲0.1243.81 ▼5.06
Posts /wp-admin/edit.php3.47 ▲0.1146.03 ▲1.13
Add New Post /wp-admin/post-new.php6.00 ▲0.1180.11 ▼6.20
Media Library /wp-admin/upload.php3.34 ▲0.1134.34 ▲1.59

Server storage [IO: ▲2.88MB] [DB: ▲0.01MB] Passed 3 tests

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

Browser metrics Passed 4 tests

A check of browser resources used by Review Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.25 ▼1.104.36 ▲2.4043.17 ▼2.10
Dashboard /wp-admin2,224 ▲365.83 ▲0.93100.88 ▼8.8981.07 ▲37.40
Posts /wp-admin/edit.php2,104 ▲122.01 ▲0.0140.77 ▲0.7333.84 ▼3.10
Add New Post /wp-admin/post-new.php1,541 ▲2223.09 ▼0.21728.77 ▲88.9758.68 ▼1.61
Media Library /wp-admin/upload.php1,406 ▲184.18 ▼0.0198.50 ▼10.8479.81 ▲33.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/review-manager/deactivate.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to a member function query() on null in wp-content/plugins/review-manager/deactivate.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Review Manager Key Setting)
You can look at the official readme.txt

review-manager/review-manager.php 92% from 13 tests

The main file in "Review Manager" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 279 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin3,546 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript45099712,146
PHP519358773
CSS32623612
SVG10114
HTML1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
68 PNG files occupy 1.83MB with 1.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon/facebook.png1.78KB1.64KB▼ 8.27%
assets/images/icon/health_grades.png1.42KB0.48KB▼ 65.91%
assets/images/arrow.png1.13KB0.42KB▼ 63.21%
assets/images/icon/zomato.png3.40KB0.64KB▼ 81.14%
assets/images/star-1.png2.67KB1.05KB▼ 60.63%