82% skeps-review-widget

Code Review | Skeps Reviews Widget

WordPress plugin Skeps Reviews Widget scored 82% from 54 tests.

About plugin

  • Plugin page: skeps-review-widget
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3.2
  • WordPress version: 5.8.1
  • First release: Apr 22, 2020
  • Latest release: Apr 22, 2020
  • Number of updates: 7
  • Update frequency: every 6.1 days
  • Top authors: skeps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 203 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼139.43ms] Passed 4 tests

A check of server-side resources used by Skeps Reviews Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.95 ▲0.2342.11 ▲15.23
Dashboard /wp-admin3.24 ▲0.1853.69 ▼1.62
Posts /wp-admin/edit.php3.29 ▲0.1853.82 ▲0.78
Add New Post /wp-admin/post-new.php5.53 ▲0.10103.69 ▼569.71
Media Library /wp-admin/upload.php3.12 ▲0.1248.59 ▲12.82
Skeps Review Widget /wp-admin/options-general.php?page=skeps-googlereviews3.0832.59

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Skeps Reviews Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲11216.02 ▲0.6914.14 ▲2.6450.82 ▼1.71
Dashboard /wp-admin2,978 ▲475.83 ▼0.16158.89 ▼15.93117.77 ▼17.66
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0169.73 ▼1.7694.13 ▲6.60
Add New Post /wp-admin/post-new.php1,584 ▼9917.24 ▼1.46445.44 ▼7.31148.44 ▲32.37
Media Library /wp-admin/upload.php1,812 ▲55.09 ▲0.06185.30 ▼10.29121.08 ▼6.52
Skeps Review Widget /wp-admin/options-general.php?page=skeps-googlereviews1,1152.8570.1593.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=skeps-googlereviews
    • > Warning in wp-content/plugins/skeps-review-widget/admin/class-skeps-googlereviews-admin.php+125
    include_once(wp-content/plugins/skeps-googlereviews/public/shared/skeps-googlereviews-stars.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/options-general.php?page=skeps-googlereviews
    • > Warning in wp-content/plugins/skeps-review-widget/admin/class-skeps-googlereviews-admin.php+125
    include_once(): Failed opening 'wp-content/plugins/skeps-googlereviews/public/shared/skeps-googlereviews-stars.php' for inclusion (include_path='.:/usr/share/php')

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/skeps-review-widget/public/partials/skeps-googlereviews-carousel.php
    • > /wp-content/plugins/skeps-review-widget/public/partials/skeps-googlereviews-summary.php
    • > /wp-content/plugins/skeps-review-widget/admin/partials/skeps-googlereviews-admin-display.php
    • > /wp-content/plugins/skeps-review-widget/public/shared/skeps-googlereviews-stars.php
  • 23× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: sgr in wp-content/plugins/skeps-review-widget/public/partials/skeps-googlereviews-summary.php on line 18
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/skeps-review-widget/public/partials/skeps-googlereviews-summary.php on line 18
    • > PHP Notice
      Undefined variable: theme in wp-content/plugins/skeps-review-widget/public/partials/skeps-googlereviews-widget-basic.php on line 22
    • > PHP Notice
      Undefined variable: score_formatted in wp-content/plugins/skeps-review-widget/public/partials/skeps-googlereviews-summary.php on line 21
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/skeps-review-widget/public/partials/skeps-googlereviews-carousel.php on line 18
    • > PHP Notice
      Undefined variable: sgr in wp-content/plugins/skeps-review-widget/public/partials/skeps-googlereviews-summary.php on line 18
    • > PHP Notice
      Undefined variable: reviews in wp-content/plugins/skeps-review-widget/public/partials/skeps-googlereviews-carousel.php on line 27
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/skeps-review-widget/public/partials/skeps-googlereviews-carousel.php on line 19
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/skeps-review-widget/public/partials/skeps-googlereviews-carousel.php on line 18
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/skeps-review-widget/public/partials/skeps-googlereviews-carousel.php on line 19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (assets/screenshot-1.jpg) image required
The official readme.txt might help

skeps-review-widget/skeps-review-widget.php 92% from 13 tests

Analyzing the main PHP file in "Skeps Reviews Widget" version 1.0.0
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin698 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP18404589627
PO File2162266
JavaScript2053
CSS2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.80
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods44
▷ Static methods24.55%
▷ Public methods3681.82%
▷ Protected methods00.00%
▷ Private methods818.18%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants120.00%
▷ Class constants480.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected