84% game-review-block

Code Review | Game Review Block

WordPress plugin Game Review Block scored84%from 54 tests.

About plugin

  • Plugin page: game-review-block
  • Plugin version: 3.9.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4
  • WordPress version: 6.3.1
  • First release: Dec 1, 2021
  • Latest release: Nov 15, 2023
  • Number of updates: 52
  • Update frequency: every 13.7 days
  • Top authors: MarcDK (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /2,462 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.16ms] Passed 4 tests

A check of server-side resources used by Game Review Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1035.95 ▼10.70
Dashboard /wp-admin3.39 ▲0.0445.78 ▼14.43
Posts /wp-admin/edit.php3.44 ▲0.0848.67 ▲0.66
Add New Post /wp-admin/post-new.php5.98 ▲0.0994.36 ▼0.15
Media Library /wp-admin/upload.php3.31 ▲0.0839.53 ▲5.71

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Game Review Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6114.32 ▲0.081.89 ▼0.6938.54 ▼6.72
Dashboard /wp-admin2,198 ▲245.61 ▲0.0298.52 ▼6.4442.99 ▲0.06
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0540.89 ▲2.9037.00 ▼0.19
Add New Post /wp-admin/post-new.php6,374 ▲4,84827.82 ▲4.641,015.60 ▲267.2344.10 ▼10.56
Media Library /wp-admin/upload.php1,397 ▼04.22 ▲0.06103.54 ▼17.6242.43 ▼3.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

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 no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_post_meta() in wp-content/plugins/game-review-block/src/review-box/callback.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_post_meta() in wp-content/plugins/game-review-block/src/review-box/callback.php:55

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: review, shortscore, rating, schema, block

game-review-block/game-review.php 92% from 13 tests

The principal PHP file in "Game Review Block" v. 3.9.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("game-review-block.php" instead of "game-review.php")

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
No dangerous file extensions were detected19,885 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
JSON80018,987
PHP79441368
JavaScript113982304
Sass5580222
CSS4103
SVG1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions1280.00%
▷ Anonymous functions320.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.22MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/review-box/assets/shortscore-1200x1600.png77.21KB28.83KB▼ 62.66%
build/images/shortscore-600x800.4f8c3a49.png31.30KB14.03KB▼ 55.20%
src/review-box/assets/shortscore-600x800.png31.30KB14.03KB▼ 55.20%
build/images/shortscore-1200x1600.0bbc6a07.png77.21KB28.83KB▼ 62.66%
src/review-box/assets/shortscore-300x400.png13.19KB6.82KB▼ 48.33%