93% go-baduk-weiqi

Code Review | Go, Baduk, Weiqi

WordPress plugin Go, Baduk, Weiqi scored 93% from 54 tests.

About plugin

  • Plugin page: go-baduk-weiqi
  • Plugin version: 0.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 5.8.1
  • First release: May 16, 2014
  • Latest release: Mar 3, 2019
  • Number of updates: 15
  • Update frequency: every 116.8 days
  • Top authors: klangfarbe (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active / 1,511 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
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼149.08ms] Passed 4 tests

A check of server-side resources used by Go, Baduk, Weiqi
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.0835.04 ▼3.39
Dashboard /wp-admin3.14 ▲0.0838.27 ▼5.33
Posts /wp-admin/edit.php3.19 ▲0.0844.91 ▲1.82
Add New Post /wp-admin/post-new.php5.50 ▲0.0784.15 ▼579.57
Media Library /wp-admin/upload.php3.08 ▲0.0732.42 ▼8.04
Go, Baduk, Weiqi /wp-admin/themes.php?page=igo_settings3.0526.46

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options
igo_settings_max_width
igo_settings_stone_handler
igo_settings_min_width_for_float
igo_settings_i18n
igo_settings_background
igo_settings_line_width
igo_settings_default_width

Browser metrics Passed 4 tests

A check of browser resources used by Go, Baduk, Weiqi
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,683 ▲8815.83 ▲0.138.86 ▼0.5650.24 ▲5.68
Dashboard /wp-admin2,978 ▲445.93 ▲0.00134.75 ▼2.61113.75 ▼7.77
Posts /wp-admin/edit.php2,744 ▲52.70 ▲0.0164.39 ▼0.4891.08 ▼0.91
Add New Post /wp-admin/post-new.php1,675 ▲8418.90 ▲0.12373.10 ▼12.92108.25 ▼11.14
Media Library /wp-admin/upload.php1,817 ▲105.02 ▲0.01159.59 ▲9.96114.59 ▼8.52
Go, Baduk, Weiqi /wp-admin/themes.php?page=igo_settings1,2962.2158.8371.85

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

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
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/go-baduk-weiqi/egd.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/go-baduk-weiqi/tablesorter.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/go-baduk-weiqi/egd.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/go-baduk-weiqi/sgf.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: sgf, baduk, responsive, kifu, weiqi...

go-baduk-weiqi/go.php 77% from 13 tests

The primary PHP file in "Go, Baduk, Weiqi" version 0.7.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 252 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("go-baduk-weiqi.php" instead of "go.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,992 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript152226838
CSS214140574
PHP44456424
Markdown141078
PO File1286078

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin