68% multiple-google-review

Code Review | Multiple Place Google Review

WordPress plugin Multiple Place Google Review scored68%from 54 tests.

About plugin

  • Plugin page: multiple-google-r...
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 21, 2021
  • Latest release: May 18, 2023
  • Number of updates: 9
  • Update frequency: every 67.1 days
  • Top authors: wapnishantha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,051 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.09ms] Passed 4 tests

Server-side resources used by Multiple Place Google Review
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.80 ▲0.16
Dashboard /wp-admin3.37 ▲0.0647.68 ▲0.64
Posts /wp-admin/edit.php3.42 ▲0.0645.13 ▼7.51
Add New Post /wp-admin/post-new.php5.95 ▲0.0697.37 ▼9.63
Media Library /wp-admin/upload.php3.29 ▲0.0634.49 ▲3.38
Multiple Place Google Review /wp-admin/admin.php?page=multipleGoogleReview3.2531.08
Add google place review to post /wp-admin/admin.php?page=mpgr_addnewentry3.2632.46
All post google review /wp-admin/admin.php?page=mpgr_allentries3.2632.14

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables
wp_google_review
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Multiple Place Google Review
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8713.19 ▼1.251.67 ▼0.0540.41 ▲1.11
Dashboard /wp-admin2,240 ▲524.83 ▼0.2499.65 ▼5.4239.84 ▼3.51
Posts /wp-admin/edit.php2,123 ▲341.99 ▼0.0536.39 ▼4.8733.79 ▼1.50
Add New Post /wp-admin/post-new.php1,575 ▲6118.04 ▲0.54583.23 ▼4.8859.46 ▲12.39
Media Library /wp-admin/upload.php1,419 ▲284.22 ▲0.0498.21 ▲1.1142.31 ▲0.85
Multiple Place Google Review /wp-admin/admin.php?page=multipleGoogleReview8632.0623.5429.54
Add google place review to post /wp-admin/admin.php?page=mpgr_addnewentry1,0092.0226.4233.73
All post google review /wp-admin/admin.php?page=mpgr_allentries8032.0524.7027.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_google_review
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% 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)
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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/multiple-google-review/setting.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=mpgr_addnewentry
    • > Network (severe)
    wp-content/plugins/multiple-google-review/img/search.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=mpgr_addnewentry
    • > Network (severe)
    wp-content/plugins/multiple-google-review/img/inspect.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=mpgr_addnewentry
    • > Network (severe)
    wp-content/plugins/multiple-google-review/img/place_id.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=mpgr_addnewentry
    • > Network (severe)
    wp-content/plugins/multiple-google-review/img/post_id.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=mpgr_addnewentry
    • > Network (severe)
    wp-content/plugins/multiple-google-review/img/post_edit.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Google Reviews under each post)
The official readme.txt is a good inspiration

multiple-google-review/multipleGoogleReview.php 92% from 13 tests

The principal PHP file in "Multiple Place Google Review" v. 1.4.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("multiple-google-review.php" instead of "multipleGoogleReview.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin503 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP411126462
Markdown120036
CSS1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected