67% game-catalog

Code Review | Games Catalog

WordPress plugin Games Catalog scored 67% from 54 tests.

About plugin

  • Plugin page: game-catalog
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.2
  • WordPress version: 5.8.1
  • First release: Mar 19, 2016
  • Latest release: Mar 19, 2016
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: askywhale (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,159 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼141.79ms] Passed 4 tests

A check of server-side resources used by Games Catalog
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.94 ▲0.1132.80 ▼4.65
Dashboard /wp-admin3.17 ▲0.1148.85 ▲4.69
Posts /wp-admin/edit.php3.22 ▲0.1144.18 ▼3.18
Add New Post /wp-admin/post-new.php5.53 ▲0.0993.70 ▼555.03
Media Library /wp-admin/upload.php3.10 ▲0.1035.37 ▼4.30
Catalog /wp-admin/options-general.php?page=gc_games3.1435.78

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: 2 new tables, 4 new options
New tables
wp_categories
wp_games
New WordPress options
gc_news_days
category_children
gc_description_length
gc_price_format

Browser metrics Passed 4 tests

Games Catalog: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,784 ▲18816.52 ▲0.988.99 ▼2.0143.54 ▼4.15
Dashboard /wp-admin3,040 ▲1066.59 ▲0.64152.76 ▲8.71124.40 ▲1.95
Posts /wp-admin/edit.php2,766 ▲302.72 ▲0.0064.12 ▼2.1291.83 ▼4.44
Add New Post /wp-admin/post-new.php1,503 ▼36918.58 ▼0.48361.44 ▲11.81113.86 ▲4.02
Media Library /wp-admin/upload.php1,812 ▲55.02 ▼0.02145.61 ▲4.40123.70 ▲1.20
Catalog /wp-admin/options-general.php?page=gc_games2,1007.69159.85107.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables detected upon uninstall: 2 tables
    • wp_games
    • wp_categories
  • Zombie WordPress options were found after uninstall: 4 options
    • gc_price_format
    • gc_description_length
    • category_children
    • gc_news_days

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/game-catalog/games-catalog.php
    • > /wp-content/plugins/game-catalog/shorttag-game-of-page.php
    • > /wp-content/plugins/game-catalog/shorttag-list.php
    • > /wp-content/plugins/game-catalog/functions.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=gc_games
    • > Network (severe)
    wp-content/plugins/games-catalog/admin-crud.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === game-catalog === )
The official readme.txt might help

game-catalog/games-catalog.php 85% from 13 tests

The main PHP script in "Games Catalog" version 1.2.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("game-catalog.php" instead of "games-catalog.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin735 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP759108504
CSS1513151
PO File133271
JavaScript13139

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.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
PNG images were not found in this plugin