83% kiyoh-customerreview

Code Review | Kiyoh customer review

WordPress plugin Kiyoh customer review scored83%from 54 tests.

About plugin

  • Plugin page: kiyoh-customerreview
  • Plugin version: 1.0.30
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Jul 23, 2015
  • Latest release: Apr 20, 2021
  • Number of updates: 44
  • Update frequency: every 47.7 days
  • Top authors: Interactivated Ecommerce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /9,807 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.19MB] [CPU: ▼1.84ms] Passed 4 tests

This is a short check of server-side resources used by Kiyoh customer review
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.1934.10 ▼7.40
Dashboard /wp-admin3.53 ▲0.2047.08 ▼5.23
Posts /wp-admin/edit.php3.65 ▲0.2654.95 ▲5.68
Add New Post /wp-admin/post-new.php6.11 ▲0.1994.55 ▲3.90
Media Library /wp-admin/upload.php3.46 ▲0.2038.03 ▲1.39

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: no files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_kiyoh_review
widget_theysaidso_widget

Browser metrics Passed 4 tests

Kiyoh customer review: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲4313.27 ▼0.894.32 ▲2.1042.22 ▼1.08
Dashboard /wp-admin2,223 ▲324.86 ▼0.05112.19 ▼6.1942.09 ▼0.67
Posts /wp-admin/edit.php2,103 ▲142.03 ▲0.0440.15 ▲4.0435.74 ▲1.17
Add New Post /wp-admin/post-new.php1,540 ▲2623.28 ▲5.74594.31 ▼101.9947.75 ▼16.62
Media Library /wp-admin/upload.php1,402 ▲114.21 ▼0.0094.91 ▼8.8042.20 ▼5.71

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_kiyoh_review

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/kiyoh-customerreview/kiyoh-customerreview.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kiyoh-customerreview/widget.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Contributors: The plugin contributors field is not present
  • Screenshots: These screenshots require images: #1 (Settings), #2 (setting widget), #3 (widget)
Please take inspiration from this readme.txt

kiyoh-customerreview/kiyoh-customerreview.php 92% from 13 tests

Analyzing the main PHP file in "Kiyoh customer review" version 1.0.30
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 591 characters long)

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
Success! There were no dangerous files found in this plugin1,276 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP370301,032
PO File26666176
JavaScript18168

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/rating-sprite.png1.46KB1.91KB0.00%