84% chess-move

Code Review | Chess

WordPress plugin Chess scored84%from 54 tests.

About plugin

  • Plugin page: chess-move
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.4-4.4.4
  • WordPress version: 6.3.1
  • First release: Jul 13, 2016
  • Latest release: Jul 17, 2016
  • Number of updates: 7
  • Update frequency: every 0.6 days
  • Top authors: jacothiart (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,191 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.01MB] [CPU: ▼9.94ms] Passed 4 tests

Analyzing server-side resources used by Chess
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.06 ▼5.32
Dashboard /wp-admin3.31 ▼0.0449.05 ▼17.06
Posts /wp-admin/edit.php3.36 ▲0.0049.12 ▼11.05
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.46 ▼6.31
Media Library /wp-admin/upload.php3.23 ▲0.0038.58 ▼0.72

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Chess
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲9913.33 ▼1.231.84 ▲0.1041.77 ▼3.13
Dashboard /wp-admin2,244 ▲414.92 ▼0.95112.31 ▼6.1537.80 ▼6.65
Posts /wp-admin/edit.php2,120 ▲202.19 ▲0.1940.94 ▲5.9236.58 ▲3.50
Add New Post /wp-admin/post-new.php1,543 ▼1117.44 ▼0.70663.94 ▲5.8952.82 ▲1.64
Media Library /wp-admin/upload.php1,420 ▲234.25 ▲0.0096.34 ▼8.9745.74 ▲1.08

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chess-move/chess.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: game, chess, play

chess-move/chess.php 85% from 13 tests

This is the main PHP file of "Chess" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("chess-move.php" instead of "chess.php")
  • Description: The plugin description must be longer than 10 characters (currently 5 characters long)

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 detected1,634 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript139921,493
PHP11612104
CSS10037

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.59
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 were not PNG files found in your plugin