78% game-dev-quotes

Code Review | Game Dev Quotes

WordPress plugin Game Dev Quotes scored78%from 54 tests.

About plugin

  • Plugin page: game-dev-quotes
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Oct 24, 2013
  • Latest release: Jul 9, 2014
  • Number of updates: 31
  • Update frequency: every 8.3 days
  • Top authors: Nodewerx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,691 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.38ms] Passed 4 tests

This is a short check of server-side resources used by Game Dev Quotes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.24 ▼2.47
Dashboard /wp-admin3.32 ▼0.0245.99 ▼13.53
Posts /wp-admin/edit.php3.37 ▲0.0242.54 ▼3.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.08 ▼14.50
Media Library /wp-admin/upload.php3.25 ▲0.0232.97 ▲0.11

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Game Dev Quotes: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4514.08 ▼0.302.10 ▲0.2852.81 ▲12.01
Dashboard /wp-admin2,186 ▲55.55 ▼0.1182.75 ▼18.6340.62 ▼0.53
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0232.61 ▼1.9238.11 ▼0.66
Add New Post /wp-admin/post-new.php1,526 ▼023.09 ▼0.52651.55 ▼33.3753.29 ▼5.29
Media Library /wp-admin/upload.php1,400 ▲34.25 ▲0.0994.78 ▼8.8939.34 ▼7.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

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 0% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/game-dev-quotes/nwxgdq_dialog.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/game-dev-quotes/gamedevquotes.php:19

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 on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can look at the official readme.txt

game-dev-quotes/gamedevquotes.php 92% from 13 tests

The primary PHP file in "Game Dev Quotes" version 1.5.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("game-dev-quotes.php" instead of "gamedevquotes.php")

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
Good job! No executable or dangerous file extensions detected264 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
imgs/ps2dev.png1.62KB1.42KB▼ 12.52%
screenshot1.png20.35KB9.59KB▼ 52.88%
imgs/aalogo.png16.01KB5.64KB▼ 64.77%