84% wp-shredderchess

Code Review | WP Shredderchess

WordPress plugin WP Shredderchess scored84%from 54 tests.

About plugin

  • Plugin page: wp-shredderchess
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Feb 8, 2016
  • Latest release: Aug 7, 2023
  • Number of updates: 51
  • Update frequency: every 53.7 days
  • Top authors: mpol (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /5,929 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.13ms] Passed 4 tests

An overview of server-side resources used by WP Shredderchess
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.37 ▼0.42
Dashboard /wp-admin3.34 ▲0.0351.13 ▲3.86
Posts /wp-admin/edit.php3.39 ▲0.0353.00 ▼1.36
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.39 ▼13.61
Media Library /wp-admin/upload.php3.26 ▲0.0338.04 ▲2.88

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_shredderchess_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Shredderchess
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▼0.011.88 ▲0.1843.39 ▼0.37
Dashboard /wp-admin2,192 ▲155.54 ▼0.0787.30 ▼5.2641.08 ▼0.06
Posts /wp-admin/edit.php2,100 ▲31.95 ▼0.0539.26 ▲0.1135.48 ▲2.67
Add New Post /wp-admin/post-new.php1,535 ▲718.08 ▼5.17621.57 ▼32.4467.80 ▲13.21
Media Library /wp-admin/upload.php1,403 ▲34.27 ▲0.0297.04 ▼6.1341.10 ▼4.08

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
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_shredderchess_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please 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_action() in wp-content/plugins/wp-shredderchess/widget-shredderchess.php:175

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: shredderchess, puzzle, boardgame, chess, chess puzzle

wp-shredderchess/widget-shredderchess.php 92% from 13 tests

The main PHP script in "WP Shredderchess" version 1.0.7 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-shredderchess.php" instead of "widget-shredderchess.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected115 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13030115

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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