83% wp-embed-sudoku

Code Review | WP embed Sudoku

WordPress plugin WP embed Sudoku scored83%from 54 tests.

About plugin

  • Plugin page: wp-embed-sudoku
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-3.4.2
  • WordPress version: 6.3.1
  • First release: Sep 28, 2012
  • Latest release: Sep 29, 2012
  • Number of updates: 12
  • Update frequency: every 0.1 days
  • Top authors: findibus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /780 total downloads

Benchmarks

Plugin footprint 83% 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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.00ms] Passed 4 tests

This is a short check of server-side resources used by WP embed Sudoku
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.81 ▼0.67
Dashboard /wp-admin3.31 ▲0.0152.54 ▲1.04
Posts /wp-admin/edit.php3.36 ▲0.0048.03 ▼4.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.92 ▼7.64
Media Library /wp-admin/upload.php3.23 ▲0.0037.13 ▲1.73

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WP embed Sudoku
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.27 ▼1.112.03 ▲0.1743.03 ▲0.30
Dashboard /wp-admin2,221 ▲174.84 ▼1.07112.69 ▼3.4241.93 ▲2.14
Posts /wp-admin/edit.php2,097 ▼01.97 ▼0.0435.00 ▼2.9535.37 ▼3.34
Add New Post /wp-admin/post-new.php1,545 ▲1921.15 ▲3.59688.32 ▼12.8251.60 ▼3.25
Media Library /wp-admin/upload.php1,400 ▼34.20 ▲0.02106.94 ▼4.1646.22 ▼4.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-embed-sudoku/wp_findibus_sudoku.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Ansicht des Spiels) image required
  • Donate link: Invalid URI found ("")
  • Tags: No tags were detected
You can take inspiration from this readme.txt

wp-embed-sudoku/wp_findibus_sudoku.php 92% from 13 tests

The entry point to "WP embed Sudoku" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-embed-sudoku.php" instead of "wp_findibus_sudoku.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
There were no executable files found in this plugin9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11119

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin