100% goserve-review-widget

Code Review | Goserve Review Widget

WordPress plugin Goserve Review Widget scored 100% from 54 tests.

About plugin

  • Plugin page: goserve-review-wi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 5.9.2
  • First release: Aug 5, 2017
  • Latest release: Aug 5, 2017
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: goserve (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50+ active / 2,039 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Server-side resources used by Goserve Review Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2056.34 ▲4.45
Dashboard /wp-admin3.54 ▲0.1333.75 ▲0.37
Posts /wp-admin/edit.php3.78 ▲0.1337.93 ▲1.47
Add New Post /wp-admin/post-new.php7.01 ▲0.0492.19 ▼1,205.06
Media Library /wp-admin/upload.php3.43 ▲0.1325.02 ▼0.47

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Goserve Review Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,819 ▲6515.87 ▲0.205.94 ▼0.202.77 ▲0.32
Dashboard /wp-admin2,916 ▲556.15 ▼0.05114.71 ▼21.84155.85 ▼3.24
Posts /wp-admin/edit.php2,712 ▲183.24 ▼0.0072.16 ▲7.89157.08 ▲17.31
Add New Post /wp-admin/post-new.php1,776 ▲8017.27 ▼3.92401.93 ▼31.14154.11 ▼2.21
Media Library /wp-admin/upload.php1,719 ▲155.52 ▲0.03148.03 ▼5.14186.46 ▲1.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Too many tags (58 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

goserve-review-widget/goserve-review-widget.php Passed 13 tests

The primary PHP file in "Goserve Review Widget" version 1.0 is used by WordPress to initiate all plugin functionality
138 characters long description:
The most complete plugin to build social proof, trust and credibility with potential customers by showcasing your reviews on your website.

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
Everything looks great! No dangerous files found in this plugin2,234 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13271611,356
PHP16124878

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity9.25
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 images were found in this plugin