10% gbo-modules-reviews

Code Review | Modules Reviews from WordPress

WordPress plugin Modules Reviews from WordPress scored10%from 54 tests.

About plugin

  • Plugin page: gbo-modules-reviews
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: May 28, 2022
  • Latest release: May 28, 2022
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: knhar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /235 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/gbo-modules-reviews/gbo-modules-reviews.php+412
    Undefined property: stdClass::$success

Server metrics [RAM: ▼1.94MB] [CPU: ▼51.70ms] Passed 4 tests

Server-side resources used by Modules Reviews from WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.425.99 ▼35.45
Dashboard /wp-admin2.06 ▼1.249.00 ▼39.56
Posts /wp-admin/edit.php2.06 ▼1.297.82 ▼44.98
Add New Post /wp-admin/post-new.php2.06 ▼3.826.81 ▼86.80
Media Library /wp-admin/upload.php2.06 ▼1.176.88 ▼31.39
Features /wp-admin/admin.php?page=gbo-modules-reviews&tab=features2.067.68
Modules Reviews from WordPress /wp-admin/admin.php?page=gbo-modules-reviews2.068.16
Documentation /wp-admin/admin.php?page=gbo-modules-reviews&tab=examples2.068.28
Configuration /wp-admin/admin.php?page=gbo-modules-reviews&tab=options2.068.58
Cache /wp-admin/admin.php?page=gbo-modules-reviews&tab=cache2.067.51

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 34 new files
Database: 1 new table, 20 new options
New tables
wp_prgbo_cache
New WordPress options
prgbo_css_custom
db_upgraded
prgbo_review_display
prgbo_download_display
widget_theysaidso_widget
prgbo_author_display
widget_recent-posts
prgbo_name_display
widget_recent-comments
prgbo_use_cache
...

Browser metrics Passed 4 tests

Checking browser requirements for Modules Reviews from WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7314.17 ▼0.161.63 ▼0.5842.95 ▼4.55
Dashboard /wp-admin2,236 ▲565.52 ▼0.1886.45 ▼4.3645.90 ▲1.24
Posts /wp-admin/edit.php2,138 ▲411.99 ▲0.0233.00 ▼3.1531.47 ▼7.37
Add New Post /wp-admin/post-new.php1,556 ▲2123.38 ▲5.19624.37 ▼8.2573.84 ▲11.89
Media Library /wp-admin/upload.php1,434 ▲344.16 ▼0.0894.42 ▼11.3842.67 ▼1.73
Features /wp-admin/admin.php?page=gbo-modules-reviews&tab=features1,2812.2528.3656.85
Modules Reviews from WordPress /wp-admin/admin.php?page=gbo-modules-reviews1,2732.2528.3729.82
Documentation /wp-admin/admin.php?page=gbo-modules-reviews&tab=examples1,2682.2527.4937.59
Configuration /wp-admin/admin.php?page=gbo-modules-reviews&tab=options1,2762.2528.3831.25
Cache /wp-admin/admin.php?page=gbo-modules-reviews&tab=cache1,2712.2530.3526.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the prgbo_custom handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 8 options
    • can_compress_scripts
    • prgbo_message
    • prgbo_counter_freemium
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 0% 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 errors were triggered by the plugin
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gbo-modules-reviews&tab=cache
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the prgbo_custom handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gbo-modules-reviews&tab=cache
    • > User notice in wp-includes/functions.php+5905
    Function wp_add_inline_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the prgbo_custom handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gbo-modules-reviews&tab=cache
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the prgbo_custom handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gbo-modules-reviews&tab=cache
    • > Notice in wp-content/plugins/gbo-modules-reviews/gbo-modules-reviews.php+412
    Undefined property: stdClass::$success
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gbo-modules-reviews&tab=cache
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

SRP 0% 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/gbo-modules-reviews/includes/admin-footer.php
  • 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: page in wp-content/plugins/gbo-modules-reviews/includes/tabs/examples.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/gbo-modules-reviews/includes/admin-header.php:2
    • > PHP Notice
      Undefined variable: page in wp-content/plugins/gbo-modules-reviews/includes/tabs/form-features.php on line 1
    • > PHP Notice
      Undefined variable: page in wp-content/plugins/gbo-modules-reviews/includes/tabs/form-options.php on line 1
    • > PHP Notice
      Undefined variable: page in wp-content/plugins/gbo-modules-reviews/includes/tabs/form-options.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/gbo-modules-reviews/includes/templates/plugin_informations.php:2
    • > PHP Notice
      Undefined variable: page in wp-content/plugins/gbo-modules-reviews/includes/tabs/404.php on line 1
    • > PHP Notice
      Undefined variable: message in wp-content/plugins/gbo-modules-reviews/includes/tabs/form-features.php on line 6
    • > PHP Notice
      Undefined variable: page in wp-content/plugins/gbo-modules-reviews/includes/tabs/form-features.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/gbo-modules-reviews/includes/tabs/examples.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=gbo-modules-reviews&tab=features
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'defaultPrevented')" "TypeError: Cannot read properties of null (reading 'defaultPrevented')\n at Mn.show (/wp-content/plugins/gbo-modules-reviews/assets/javascript/bootstrap-5.1.3.bundle.min.js?ver=1:6:75675)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/gbo-modules-reviews/assets/javascript/prgbo-admin.js?ver=1:9:64)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gbo-modules-reviews&tab=options
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of null (reading 'defaultPrevented')
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gbo-modules-reviews&tab=options
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'defaultPrevented')" "TypeError: Cannot read properties of null (reading 'defaultPrevented')\n at Mn.show (/wp-content/plugins/gbo-modules-reviews/assets/javascript/bootstrap-5.1.3.bundle.min.js?ver=1:6:75675)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/gbo-modules-reviews/assets/javascript/prgbo-admin.js?ver=1:6:63)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gbo-modules-reviews&tab=cache
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'className')" "TypeError: Cannot read properties of undefined (reading 'className')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/gbo-modules-reviews/assets/javascript/prgbo-admin.js?ver=1:11:21)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gbo-modules-reviews&tab=cache
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'className')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
5 plugin tags: reviews, plugin, review, module, wordpress

gbo-modules-reviews/gbo-modules-reviews.php 85% from 13 tests

The principal PHP file in "Modules Reviews from WordPress" v. 1.0.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "5.2")
  • Requires PHP: The required version number must match the one declared in readme.txt ("5.6" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,518 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP12162105849
PO File2346727522
CSS2146104
JavaScript211943

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity70.00
▷ Minimum class complexity70.00
▷ Maximum class complexity70.00
Average method complexity5.47
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1794.44%
▷ Protected methods00.00%
▷ Private methods15.56%
Functions0
▷ Named functions00.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
13 PNG files occupy 2.19MB with 1.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-4.png225.07KB81.16KB▼ 63.94%
assets/screenshot-6.png169.71KB58.16KB▼ 65.73%
assets/icon-128x128.png15.59KB6.56KB▼ 57.93%
assets/images/product-template-2.png88.55KB94.28KB0.00%
assets/screenshot-2.png409.36KB101.26KB▼ 75.26%