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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.08 | 35.04 ▼3.39 |
Dashboard /wp-admin | 3.14 ▲0.08 | 38.27 ▼5.33 |
Posts /wp-admin/edit.php | 3.19 ▲0.08 | 44.91 ▲1.82 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 84.15 ▼579.57 |
Media Library /wp-admin/upload.php | 3.08 ▲0.07 | 32.42 ▼8.04 |
Go, Baduk, Weiqi /wp-admin/themes.php?page=igo_settings | 3.05 | 26.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,683 ▲88 | 15.83 ▲0.13 | 8.86 ▼0.56 | 50.24 ▲5.68 |
Dashboard /wp-admin | 2,978 ▲44 | 5.93 ▲0.00 | 134.75 ▼2.61 | 113.75 ▼7.77 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▲0.01 | 64.39 ▼0.48 | 91.08 ▼0.91 |
Add New Post /wp-admin/post-new.php | 1,675 ▲84 | 18.90 ▲0.12 | 373.10 ▼12.92 | 108.25 ▼11.14 |
Media Library /wp-admin/upload.php | 1,817 ▲10 | 5.02 ▲0.01 | 159.59 ▲9.96 | 114.59 ▼8.52 |
Go, Baduk, Weiqi /wp-admin/themes.php?page=igo_settings | 1,296 | 2.21 | 58.83 | 71.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 15 | 22 | 26 | 838 |
CSS | 2 | 141 | 40 | 574 |
PHP | 4 | 44 | 56 | 424 |
Markdown | 1 | 41 | 0 | 78 |
PO File | 1 | 28 | 60 | 78 |
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 code | 0.47 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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