84% chess

Code Review | Chess

WordPress plugin Chess scored84%from 54 tests.

About plugin

  • Plugin page: chess
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 4, 2016
  • Latest release: Jan 10, 2016
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: max.doom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /897 total downloads


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.00MB] [CPU: ▼10.50ms] 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.48 ▲0.0142.71 ▼1.56
Dashboard /wp-admin3.32 ▼0.0353.89 ▼12.32
Posts /wp-admin/edit.php3.37 ▲0.0146.01 ▼4.57
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.78 ▼23.55
Media Library /wp-admin/upload.php3.25 ▲0.0137.74 ▲0.78

Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Chess
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▲0.061.84 ▲0.1048.49 ▲3.91
Dashboard /wp-admin2,195 ▲185.64 ▼0.0493.19 ▼1.7843.57 ▲4.85
Posts /wp-admin/edit.php2,100 ▼02.04 ▼0.0036.99 ▲0.2533.39 ▼2.64
Add New Post /wp-admin/post-new.php1,545 ▲523.11 ▲4.86704.21 ▲88.0665.28 ▲14.28
Media Library /wp-admin/upload.php1,400 ▲34.19 ▼0.04105.53 ▲3.1844.55 ▼1.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/chess/chess.php:73

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Output of the short code floating right.)
The official readme.txt is a good inspiration

chess/chess.php Passed 13 tests

The principal PHP file in "Chess" v. 0.0.1 is loaded by WordPress automatically on each request
64 characters long description:
Display chess boards in posts and pages with a simple short cut.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin184 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ 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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png42.43KB19.76KB▼ 53.42%