74% wp-sudoku-plus

Code Review | WP Sudoku Plus

WordPress plugin WP Sudoku Plus scored74%from 54 tests.

About plugin

  • Plugin page: wp-sudoku-plus
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2016
  • Latest release: Oct 30, 2022
  • Number of updates: 38
  • Update frequency: every 64.8 days
  • Top authors: opajaap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.08MB] [CPU: ▼8.61ms] Passed 4 tests

A check of server-side resources used by WP Sudoku Plus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0943.39 ▼1.57
Dashboard /wp-admin3.43 ▲0.0548.51 ▼14.89
Posts /wp-admin/edit.php3.48 ▲0.0949.44 ▼1.54
Add New Post /wp-admin/post-new.php6.01 ▲0.0988.58 ▼16.44
Media Library /wp-admin/upload.php3.35 ▲0.0836.90 ▲0.06

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: 1 new table, 6 new options
New tables
wp_wp_sudoku
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Sudoku Plus
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲10913.35 ▼0.849.49 ▲7.7244.99 ▲5.24
Dashboard /wp-admin2,198 ▲215.61 ▼0.0188.29 ▲0.2640.44 ▼1.43
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0033.67 ▼4.6436.69 ▲0.67
Add New Post /wp-admin/post-new.php1,526 ▼1223.15 ▲0.22676.63 ▼13.8560.57 ▲8.37
Media Library /wp-admin/upload.php1,400 ▲34.20 ▲0.0396.70 ▼21.7442.94 ▼5.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_wp_sudoku
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-sudoku-plus/wp-sudoku-plus.php:80
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/wp-sudoku-plus/wp-sudoku-plus.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: game, sudoku, puzzle

wp-sudoku-plus/wp-sudoku-plus.php Passed 13 tests

The primary PHP file in "WP Sudoku Plus" version 1.5 is used by WordPress to initiate all plugin functionality
13 characters long description:
Simple Sudoku

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
Everything looks great! No dangerous files found in this plugin904 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP17133531
JavaScript14012204
PO File35863169

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin