Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.40ms] Passed 4 tests
An overview of server-side resources used by Embed Chessboard
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.17 ▼6.84 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.46 ▼5.25 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.57 ▲1.83 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.15 ▼15.34 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.75 ▲3.87 |
Embed Chessboard /wp-admin/options-general.php?page=embed-chessboard/embedchessboard.php | 3.21 | 35.22 |
Server storage [IO: ▲2.03MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Embed Chessboard
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.27 ▲0.12 | 1.87 ▲0.09 | 44.23 ▼2.36 |
Dashboard /wp-admin | 2,199 ▲28 | 5.54 ▼0.09 | 85.07 ▼13.47 | 37.88 ▼5.55 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 1.94 ▼0.00 | 32.68 ▼6.37 | 35.72 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 18.60 ▼4.91 | 604.66 ▼42.44 | 72.47 ▲21.69 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.25 ▼0.01 | 99.53 ▲3.16 | 41.27 ▼3.53 |
Embed Chessboard /wp-admin/options-general.php?page=embed-chessboard/embedchessboard.php | 1,188 | 1.91 | 27.23 | 42.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
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
Good news, no errors were detected
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/embed-chessboard/embedchessboard.php:332
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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
4 plugin tags: chessboard, pgn4web, pgn, chess
embed-chessboard/embedchessboard.php 85% from 13 tests
The main PHP script in "Embed Chessboard" version 3.06.00 is automatically included on every request by WordPress
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 575 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("embed-chessboard.php" instead of "embedchessboard.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected11,303 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 777 | 203 | 5,098 |
SVG | 4 | 0 | 0 | 3,951 |
HTML | 3 | 291 | 27 | 1,594 |
PHP | 2 | 87 | 187 | 638 |
CSS | 3 | 7 | 39 | 22 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 48.00 |
▷ Minimum class complexity | 48.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 24.50 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
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
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
pgn4web/images/uscf/20/bk.png | 1.42KB | 0.92KB | ▼ 35.71% |
pgn4web/images/uscf/20/wb.png | 1.38KB | 0.99KB | ▼ 28.60% |
pgn4web/libs/jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |
pgn4web/images/uscf/20/bb.png | 1.24KB | 0.84KB | ▼ 31.73% |
pgn4web/images/uscf/20/wr.png | 1.22KB | 0.73KB | ▼ 39.90% |