78% review-slider-google

Code Review | Google Reviews Slider

WordPress plugin Google Reviews Slider scored78%from 54 tests.

About plugin

  • Plugin page: review-slider-google
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Jun 3, 2017
  • Latest release: Jun 3, 2017
  • Number of updates: 12
  • Update frequency: every 0.7 days
  • Top authors: localmapco (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /4,056 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Google Reviews Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.53 ▼0.00
Dashboard /wp-admin3.39 ▲0.0854.33 ▲5.25
Posts /wp-admin/edit.php3.50 ▲0.1450.58 ▲1.93
Add New Post /wp-admin/post-new.php5.96 ▲0.0782.17 ▼2.26
Media Library /wp-admin/upload.php3.29 ▲0.0634.73 ▼1.09
Google Review Slider /wp-admin/options-general.php?page=google-review-slider3.2631.74

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
review_slider_settings
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Google Reviews Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲18814.58 ▼0.011.69 ▼0.1343.70 ▼2.68
Dashboard /wp-admin2,355 ▲1786.37 ▲0.78109.06 ▲6.7339.99 ▼3.49
Posts /wp-admin/edit.php2,295 ▲1953.51 ▲1.5457.86 ▲20.1833.43 ▼3.72
Add New Post /wp-admin/post-new.php1,544 ▲1823.17 ▲0.13666.80 ▼22.8640.20 ▼26.28
Media Library /wp-admin/upload.php1,434 ▲374.34 ▲0.2382.38 ▼30.4342.19 ▼4.35
Google Review Slider /wp-admin/options-general.php?page=google-review-slider1,2783.4459.3725.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • review_slider_settings
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=google-review-slider
    • > Notice in wp-content/plugins/review-slider-google/google-review-slider.php+33
    Undefined index: review_slider_google_place_ID

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 Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/review-slider-google/google-review-slider.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/review-slider-google/google_review_slider_iframe_content.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
2 plugin tags: google reviews, testimonial slider

review-slider-google/google-review-slider.php 92% from 13 tests

Analyzing the main PHP file in "Google Reviews Slider" version 1.2
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("review-slider-google.php" instead of "google-review-slider.php")

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 plugin866 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS4839480
PHP29311272
Markdown11071
JavaScript381630
SVG11013

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected