83% chesstempoviewer

Code Review | Chess Tempo Viewer

WordPress plugin Chess Tempo Viewer scored83%from 54 tests.

About plugin

  • Plugin page: chesstempoviewer
  • Plugin version: 0.9.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.0
  • WordPress version: 6.3.1
  • First release: Apr 19, 2014
  • Latest release: Aug 18, 2019
  • Number of updates: 25
  • Update frequency: every 78.1 days
  • Top authors: mliebelt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,258 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.88ms] Passed 4 tests

A check of server-side resources used by Chess Tempo Viewer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.12 ▼0.22
Dashboard /wp-admin3.32 ▲0.0248.60 ▼8.47
Posts /wp-admin/edit.php3.37 ▲0.0246.97 ▼6.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.19 ▼10.01
Media Library /wp-admin/upload.php3.24 ▲0.0235.21 ▼2.27
Chess Tempo Viewer /wp-admin/options-general.php?page=chesstempoviewer/chess-tempo-viewer.php3.2129.61

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Chess Tempo Viewer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲17514.19 ▼0.0415.42 ▲13.7235.44 ▼4.30
Dashboard /wp-admin2,202 ▲225.63 ▼0.0291.77 ▲4.8742.11 ▲0.08
Posts /wp-admin/edit.php2,107 ▲41.96 ▼0.0240.25 ▲4.0536.81 ▼1.94
Add New Post /wp-admin/post-new.php1,531 ▲523.34 ▲0.27604.79 ▼16.0655.74 ▲1.41
Media Library /wp-admin/upload.php1,401 ▲44.15 ▼0.0293.77 ▼12.7343.67 ▼5.10
Chess Tempo Viewer /wp-admin/options-general.php?page=chesstempoviewer/chess-tempo-viewer.php7632.1624.4524.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chesstempoviewer/chess-tempo-viewer.php:23

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 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Board from a special position, with most parameter (pieceSet, pieceSize) with default values.), #2 (Tiny board from the start position.), #3 (Layout variation with parameter layout)
  • Donate link: Invalid URI ("")
  • Plugin Name: You should set the name of your plugin on the first line ( === chesstempoviewer === )
You can take inspiration from this readme.txt

chesstempoviewer/chess-tempo-viewer.php 92% from 13 tests

The principal PHP file in "Chess Tempo Viewer" v. 0.9.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("chesstempoviewer.php" instead of "chess-tempo-viewer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected121 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1102182
CSS14039

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions5
▷ Named functions5100.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
3 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png46.94KB20.35KB▼ 56.64%
screenshot-2.png35.66KB15.63KB▼ 56.17%
screenshot-1.png48.02KB19.34KB▼ 59.73%