68% shinobi-reviews

Code Review | Shinobi Reviews

WordPress plugin Shinobi Reviews scored68%from 54 tests.

About plugin

  • Plugin page: shinobi-reviews
  • Plugin version: 1.6.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.3-6.3
  • WordPress version: 6.3.1
  • First release: Jan 25, 2020
  • Latest release: Oct 21, 2023
  • Number of updates: 113
  • Update frequency: every 12.1 days
  • Top authors: shinobiworks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /5,349 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.67MB] [CPU: ▲3.69ms] Passed 4 tests

This is a short check of server-side resources used by Shinobi Reviews
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.16 ▲0.6950.51 ▲10.83
Dashboard /wp-admin3.97 ▲0.6651.82 ▲6.23
Posts /wp-admin/edit.php4.03 ▲0.6649.47 ▲0.80
Add New Post /wp-admin/post-new.php6.56 ▲0.6788.30 ▼2.34
Media Library /wp-admin/upload.php3.90 ▲0.6642.81 ▲10.05

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 86 new files
Database: 3 new tables, 11 new options
New tables
wp_shinobi_options
wp_shinobi_membership
wp_shinobi_reviews
New WordPress options
widget_theysaidso_widget
db_upgraded
shinobi_membership_table_ver
widget_recent-comments
widget_shinobireviews__formgroupwidget
widget_recent-posts
shinobi_options_table_ver
can_compress_scripts
shinobiReviewsVersion
theysaidso_admin_options
...

Browser metrics Passed 4 tests

An overview of browser requirements for Shinobi Reviews
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲9014.36 ▼0.041.76 ▲0.1243.99 ▲0.18
Dashboard /wp-admin2,254 ▲745.61 ▼0.0781.89 ▼5.6638.36 ▼7.93
Posts /wp-admin/edit.php2,156 ▲742.03 ▲0.0735.97 ▼0.4033.98 ▼0.68
Add New Post /wp-admin/post-new.php6,208 ▲4,67718.94 ▼4.11868.29 ▲202.6563.22 ▲9.81
Media Library /wp-admin/upload.php1,456 ▲594.25 ▲0.0396.18 ▼7.5241.00 ▼2.81

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie tables detected upon uninstall: 3 tables
    • wp_shinobi_reviews
    • wp_shinobi_options
    • wp_shinobi_membership
  • This plugin does not fully uninstall, leaving 11 options in the database
    • db_upgraded
    • shinobiReviewsVersion
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • shinobi_membership_table_ver
    • widget_recent-posts
    • shinobi_reviews_table_ver
    • widget_shinobireviews__formgroupwidget
    • theysaidso_admin_options
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 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 following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/shinobi-reviews/vendor/shinobiworks/core/tests/bootstrap.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/shinobi-reviews/vendor/shinobiworks/core/tests/test-sample.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shinobi-reviews/App/Widgets/FormGroupWidget.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/shinobi-reviews/vendor/shinobiworks/core/tests/test-converter.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/shinobi-reviews/vendor/shinobiworks/core/tests/test-constraint.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/shinobi-reviews/vendor/shinobiworks/core/tests/test-svg.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/shinobi-reviews/vendor/shinobiworks/core/tests/test-db.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/shinobi-reviews/vendor/shinobiworks/core/tests/test-form-parts.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Shinobi_Reviews\\App\\Setup\\Migration' not found in wp-content/plugins/shinobi-reviews/App/Setup/Bootstrap.php:18

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 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
4 plugin tags: i18n, rating, review, multilingual

shinobi-reviews/shinobi-reviews.php Passed 13 tests

The entry point to "Shinobi Reviews" version 1.6.0 is a PHP file that has certain tags in its header comment area
89 characters long description:
A review plugin for gathering many customer reviews and make friends with search engines.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected4,090 lines of code in 74 files:
LanguageFilesBlank linesComment linesLines of code
PHP597371,6653,626
JSON600137
JavaScript4184134
Bourne Shell12111123
XML2122745
YAML18021
Markdown1104

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces13
Interfaces0
Traits0
Classes48
▷ Abstract classes00.00%
▷ Concrete classes48100.00%
▷ Final classes00.00%
Methods225
▷ Static methods9140.44%
▷ Public methods20691.56%
▷ Protected methods00.00%
▷ Private methods198.44%
Functions11
▷ Named functions19.09%
▷ Anonymous functions1090.91%
Constants19
▷ Global constants1578.95%
▷ Class constants421.05%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/banner-772x250.png72.45KB26.83KB▼ 62.97%