89% wha-puzzle

Code Review |

WordPress plugin scored89%from 54 tests.

About plugin

  • Plugin page: wha-puzzle
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.5
  • WordPress version: 6.3.1
  • First release: Feb 5, 2019
  • Latest release: Sep 18, 2020
  • Number of updates: 59
  • Update frequency: every 10.0 days
  • Top authors: webhack (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

500+ active /8,058 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼2.12ms] Passed 4 tests

A check of server-side resources used by
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1849.36 ▲7.43
Dashboard /wp-admin3.43 ▲0.1248.16 ▼1.35
Posts /wp-admin/edit.php3.48 ▲0.1248.96 ▼0.48
Add New Post /wp-admin/post-new.php6.03 ▲0.1594.81 ▼4.30
Media Library /wp-admin/upload.php3.35 ▲0.1237.60 ▼2.36
Add New /wp-admin/post-new.php?post_type=wha_puzzle3.4754.13
All Puzzles /wp-admin/edit.php?post_type=wha_puzzle3.3942.91

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,191 ▲43016.77 ▲2.4951.43 ▲49.5247.53 ▲4.85
Dashboard /wp-admin2,237 ▲575.66 ▲0.0193.33 ▲4.6240.18 ▼5.49
Posts /wp-admin/edit.php2,148 ▲452.66 ▲0.6946.92 ▲10.8235.76 ▲2.33
Add New Post /wp-admin/post-new.php1,558 ▲723.58 ▲5.22686.51 ▲33.2735.28 ▼41.08
Media Library /wp-admin/upload.php1,445 ▲455.24 ▲0.99112.86 ▲6.3647.73 ▼2.39
Add New /wp-admin/post-new.php?post_type=wha_puzzle2,4558.66165.21146.45
All Puzzles /wp-admin/edit.php?post_type=wha_puzzle1,1092.6440.6040.66

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #4 (Example game over)
You can look at the official readme.txt

wha-puzzle/wha-puzzle.php 92% from 13 tests

Analyzing the main PHP file in "" version 1.0.9
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

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
Good job! No executable or dangerous file extensions detected16,502 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript63,5152,31715,344
PHP216578450
CSS3192427
Sass1250273
SVG1008

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
13 PNG files occupy 2.41MB with 1.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-restart.png4.65KB2.45KB▼ 47.31%
images/icon-start.png3.09KB1.85KB▼ 40.11%
images/tw.png2.87KB1.88KB▼ 34.50%
images/screenshot-1.png128.95KB45.55KB▼ 64.68%
images/icon-pause.png2.81KB1.77KB▼ 37.06%