94% wp-chesstempo

Code Review | WP Chesstempo

WordPress plugin WP Chesstempo scored 94% from 54 tests.

About plugin

  • Plugin page: wp-chesstempo
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.0
  • WordPress version: 5.8.1
  • First release: Jul 10, 2018
  • Latest release: Feb 18, 2019
  • Number of updates: 7
  • Update frequency: every 31.9 days
  • Top authors: mpol (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 742 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼145.00ms] Passed 4 tests

A check of server-side resources used by WP Chesstempo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0234.16 ▼2.20
Dashboard /wp-admin3.08 ▲0.0349.06 ▼1.07
Posts /wp-admin/edit.php3.13 ▲0.0248.38 ▲2.25
Add New Post /wp-admin/post-new.php5.44 ▲0.0086.65 ▼573.12
Media Library /wp-admin/upload.php3.02 ▲0.0232.44 ▼3.62

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WP Chesstempo: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.88 ▲0.408.36 ▼0.8145.88 ▼0.96
Dashboard /wp-admin2,967 ▲335.87 ▼0.11141.65 ▼23.76108.27 ▲2.12
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0167.34 ▼9.9687.70 ▲6.60
Add New Post /wp-admin/post-new.php1,506 ▲618.57 ▼0.21400.09 ▼4.60103.16 ▼7.08
Media Library /wp-admin/upload.php1,807 ▼05.09 ▲0.07154.31 ▲6.42115.83 ▲2.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-chesstempo/widget-chesstempo.php:155

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: puzzle, chess puzzle, boardgame, chess, chesstempo

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

This is the main PHP file of "WP Chesstempo" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-chesstempo.php" instead of "widget-chesstempo.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
There were no executable files found in this plugin96 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1293096

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.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
No PNG images were found in this plugin