10% hexagonal-reviews

Code Review | Hexagonal Reviews

WordPress plugin Hexagonal Reviews scored 10% from 54 tests.

About plugin

  • Plugin page: hexagonal-reviews
  • Plugin version: 1.2.13
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 7.4-6.1
  • WordPress version: 6.3.1
  • First release: Jan 1, 2021
  • Latest release: Nov 18, 2022
  • Number of updates: 36
  • Update frequency: every 19.1 days
  • Top authors: warguns86 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 513 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin cannot be installed
    • > User error in wp-content/plugins/hexagonal-reviews/vendor/composer/platform_check.php+24
    Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16.

Server metrics [RAM: ▼1.96MB] [CPU: ▼53.95ms] Passed 4 tests

A check of server-side resources used by Hexagonal Reviews
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.433.91 ▼34.16
Dashboard /wp-admin2.05 ▼1.265.00 ▼42.51
Posts /wp-admin/edit.php2.05 ▼1.316.72 ▼39.69
Add New Post /wp-admin/post-new.php2.05 ▼3.845.75 ▼99.42
Media Library /wp-admin/upload.php2.05 ▼1.185.35 ▼31.72

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 302 new files
Database: 2 new tables, no new options
New tables
wp_hexagonal_review_average
wp_hexagonal_review

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hexagonal Reviews
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲12513.30 ▼1.371.92 ▼0.3143.56 ▼1.06
Dashboard /wp-admin2,237 ▲465.88 ▲0.8498.50 ▼3.1168.81 ▲25.30
Posts /wp-admin/edit.php2,117 ▲281.99 ▼0.0539.68 ▼3.1234.82 ▼0.35
Add New Post /wp-admin/post-new.php1,549 ▲2117.80 ▼0.64639.73 ▲38.1754.66 ▲1.10
Media Library /wp-admin/upload.php1,422 ▲314.19 ▼0.14106.86 ▲1.2847.22 ▲1.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure had uncaught errors
    • > User error in wp-content/plugins/hexagonal-reviews/vendor/composer/platform_check.php+24
    Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16.
  • Zombie WordPress options detected upon uninstall: 7 options
    • hexagonal-reviews-version
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/hexagonal-reviews/src/UI/Wordpress/Front/templates/GetReviewsBlock.php
  • 138× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Parse error
      syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE) in wp-content/plugins/hexagonal-reviews/vendor/ramsey/uuid/src/Guid/GuidBuilder.php on line 41
    • > PHP Parse error
      syntax error, unexpected '=>' (T_DOUBLE_ARROW) in wp-content/plugins/hexagonal-reviews/vendor/ramsey/uuid/src/Provider/Dce/SystemDceSecurityProvider.php on line 109
    • > PHP Parse error
      syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE) in wp-content/plugins/hexagonal-reviews/vendor/ramsey/uuid/src/Generator/DefaultTimeGenerator.php on line 44
    • > PHP Parse error
      syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE) in wp-content/plugins/hexagonal-reviews/vendor/ramsey/uuid/src/FeatureSet.php on line 91
    • > PHP Fatal error
      Uncaught Error: Class 'Brick\\Math\\Exception\\MathException' not found in wp-content/plugins/hexagonal-reviews/vendor/brick/math/src/Exception/DivisionByZeroException.php:10
    • > PHP Parse error
      syntax error, unexpected ',' in wp-content/plugins/hexagonal-reviews/vendor/ramsey/uuid/src/Rfc4122/VersionTrait.php on line 53
    • > PHP Fatal error
      Uncaught Error: Class 'Brick\\Math\\Internal\\Calculator' not found in wp-content/plugins/hexagonal-reviews/vendor/brick/math/src/Internal/Calculator/GmpCalculator.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Ramsey\\Collection\\AbstractArray' not found in wp-content/plugins/hexagonal-reviews/vendor/ramsey/collection/src/Queue.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Ramsey\\Uuid\\Uuid' not found in wp-content/plugins/hexagonal-reviews/vendor/ramsey/uuid/src/Rfc4122/MaxUuid.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'Ramsey\\Uuid\\Exception\\UuidExceptionInterface' not found in wp-content/plugins/hexagonal-reviews/vendor/ramsey/uuid/src/Exception/DceSecurityException.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: review, hexagonal, clean, reviews

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

Analyzing the main PHP file in "Hexagonal Reviews" version 1.2.13
33 characters long description:
The Wp Reviews you always desired

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin14,498 lines of code in 284 files:
LanguageFilesBlank linesComment linesLines of code
PHP2553,48311,18611,329
Markdown1263001,552
JSON1000881
PO File3214301494
CSS2270158
XML211184

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity5.17
▷ Minimum class complexity1.00
▷ Maximum class complexity91.00
Average method complexity1.97
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces68
Interfaces40
Traits10
Classes186
▷ Abstract classes73.76%
▷ Concrete classes17996.24%
▷ Final classes8044.69%
Methods1,110
▷ Static methods11310.18%
▷ Public methods1,01491.35%
▷ Protected methods181.62%
▷ Private methods787.03%
Functions82
▷ Named functions5060.98%
▷ Anonymous functions3239.02%
Constants113
▷ Global constants21.77%
▷ Class constants11198.23%
▷ Public constants9081.08%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin