78% guestapp

Code Review | Guest Suite

WordPress plugin Guest Suite scored78%from 54 tests.

About plugin

  • Plugin page: guestapp
  • Plugin version: 1.4.28
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.2
  • WordPress version: 6.3.1
  • First release: May 12, 2014
  • Latest release: Jun 29, 2023
  • Number of updates: 64
  • Update frequency: every 52.2 days
  • Top authors: guestapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /8,915 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Guest Suite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1241.55 ▼0.06
Dashboard /wp-admin3.42 ▲0.1246.13 ▼7.80
Posts /wp-admin/edit.php3.47 ▲0.1148.05 ▼0.11
Add New Post /wp-admin/post-new.php5.99 ▲0.1187.70 ▼0.94
Media Library /wp-admin/upload.php3.34 ▲0.1135.32 ▼0.78

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Guest Suite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲21913.89 ▼0.416.57 ▲4.8642.58 ▼6.06
Dashboard /wp-admin2,226 ▲355.07 ▼0.84111.13 ▲12.62105.37 ▲64.12
Posts /wp-admin/edit.php2,127 ▲412.22 ▲0.2033.10 ▼4.2633.20 ▼0.33
Add New Post /wp-admin/post-new.php6,228 ▲4,69519.15 ▼3.96933.05 ▲253.7242.07 ▼4.61
Media Library /wp-admin/upload.php1,423 ▲354.32 ▲0.0998.88 ▼8.2376.93 ▲30.53

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
  • Zombie WordPress options were found after uninstall: 8 options
    • guestapp_review_error_data
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_guestapp_widget
    • theysaidso_admin_options

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)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/guestapp/templates/before_widget.php
  • 24× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: note in wp-content/plugins/guestapp/templates/widget-overview.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/guestapp/templates/modal_selector.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/guestapp/templates/widget_settings.php:3
    • > PHP Notice
      Undefined variable: compact in wp-content/plugins/guestapp/templates/after_widget.php on line 8
    • > PHP Notice
      Undefined variable: color in wp-content/plugins/guestapp/templates/before_widget.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/guestapp/templates/error_generic.php:2
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/guestapp/templates/before_widget.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_settings_fields() in wp-content/plugins/guestapp/templates/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/guestapp/templates/widget-overview.php:61
    • > PHP Notice
      Undefined variable: count in wp-content/plugins/guestapp/templates/before_widget.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
8 plugin tags: tourism, hospitality, reviews, restaurant, reputation...

guestapp/guestapp.php Passed 13 tests

"Guest Suite" version 1.4.28's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
18 characters long description:
Guest Suite Plugin

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 plugin3,235 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP132222701,072
CSS416568815
PO File433835756
JavaScript43630406
SVG100151
Bourne Shell15035

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity41.50
▷ Minimum class complexity39.00
▷ Maximum class complexity44.00
Average method complexity5.05
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods15.00%
▷ Public methods1575.00%
▷ Protected methods15.00%
▷ Private methods420.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
44 PNG files occupy 1.20MB with 0.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo-dark.png224.42KB65.55KB▼ 70.79%
images/preview-compact-note-light.png29.67KB10.50KB▼ 64.63%
images/questionmark.png0.40KB0.57KB0.00%
images/preview-compact-stars-light.png27.87KB9.57KB▼ 65.67%
images/seal.png35.06KB14.17KB▼ 59.58%