89% hangman

Code Review | Hangman

WordPress plugin Hangman scored89%from 54 tests.

About plugin

  • Plugin page: hangman
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 9, 2018
  • Latest release: May 29, 2023
  • Number of updates: 25
  • Update frequency: every 70.2 days
  • Top authors: oligalma (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,660 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Hangman
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.88 ▼1.48
Dashboard /wp-admin3.32 ▼0.0249.70 ▼13.59
Posts /wp-admin/edit.php3.38 ▲0.0246.47 ▲2.80
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.02 ▼17.79
Media Library /wp-admin/upload.php3.25 ▲0.0236.13 ▲0.17

Server storage [IO: ▲1.12MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Hangman: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.69 ▲0.351.60 ▼0.1741.50 ▼1.98
Dashboard /wp-admin2,192 ▲155.53 ▼0.0283.64 ▼6.3235.18 ▼3.63
Posts /wp-admin/edit.php2,103 ▲31.97 ▲0.0138.77 ▲0.6129.94 ▼6.79
Add New Post /wp-admin/post-new.php1,526 ▼922.96 ▲4.63619.36 ▼3.2390.16 ▲8.61
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.0597.66 ▼1.1442.71 ▲1.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #1, #2 in hangman/assets to your readme.txt
  • Contributors: Plugin contributors field is missing
You can take inspiration from this readme.txt

hangman/hangman.php 92% from 13 tests

"Hangman" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin435 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34411287
CSS12610148

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png27.89KB10.13KB▼ 63.68%