Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.37MB] [CPU: ▲5.34ms] Passed 4 tests
An overview of server-side resources used by RPB Chessboard
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 47.65 ▲8.68 |
Dashboard /wp-admin | 3.67 ▲0.36 | 52.66 ▲2.68 |
Posts /wp-admin/edit.php | 3.73 ▲0.38 | 54.29 ▲7.31 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 101.94 ▲2.68 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 49.29 ▲14.64 |
RPB Chessboard /wp-admin/options-general.php?page=rpbchessboard | 3.64 | 44.46 |
Server storage [IO: ▲1.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 236 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for RPB Chessboard
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,969 ▲222 | 20.89 ▲6.55 | 5.27 ▲3.57 | 37.54 ▼6.38 |
Dashboard /wp-admin | 2,295 ▲115 | 10.34 ▲4.68 | 261.40 ▲159.13 | 47.79 ▲0.58 |
Posts /wp-admin/edit.php | 2,195 ▲95 | 10.38 ▲8.43 | 94.85 ▲56.61 | 37.12 ▲3.92 |
Add New Post /wp-admin/post-new.php | 6,382 ▲4,856 | 29.11 ▲6.05 | 775.86 ▲123.51 | 38.86 ▼17.25 |
Media Library /wp-admin/upload.php | 1,518 ▲115 | 12.94 ▲8.82 | 142.93 ▲43.78 | 41.72 ▼0.55 |
RPB Chessboard /wp-admin/options-general.php?page=rpbchessboard | 1,375 | 9.72 | 108.95 | 41.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 92× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/rpb-chessboard/php/templates/adminpage/chessgamesettings/navigationtoolbar.php:23
- > PHP Warning
Use of undefined constant RPBCHESSBOARD_ABSPATH - assumed 'RPBCHESSBOARD_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/rpb-chessboard/php/controllerfrontend.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/rpb-chessboard/php/templates/adminpage/chessdiagramsettings/alignment.php:23
- > PHP Warning
Use of undefined constant RPBCHESSBOARD_ABSPATH - assumed 'RPBCHESSBOARD_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/rpb-chessboard/php/controlleradmin.php on line 23
- > PHP Warning
Use of undefined constant RPBCHESSBOARD_ABSPATH - assumed 'RPBCHESSBOARD_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/rpb-chessboard/php/models/adminsubpage/compatibilitysettings.php on line 23
- > PHP Warning
require_once(RPBCHESSBOARD_ABSPATHphp/models/block/abstract.php): failed to open stream: No such file or directory in wp-content/plugins/rpb-chessboard/php/models/block/shortcodepgn.php on line 23
- > PHP Warning
Use of undefined constant RPBCHESSBOARD_ABSPATH - assumed 'RPBCHESSBOARD_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/rpb-chessboard/php/models/adminsubpage/abstractform.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/rpb-chessboard/php/templates/adminpage/generic/form.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/rpb-chessboard/php/templates/adminpage/theming/piecesets.php:23
- > PHP Fatal error
require_once(): Failed opening required 'RPBCHESSBOARD_ABSPATHphp/models/adminsubpage/abstractform.php' (include_path='.:/usr/share/php') in wp-content/plugins/rpb-chessboard/php/models/adminsubpage/chessgamesettings.php on line 23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: games, pgn, chessboard, fen, chess
rpb-chessboard/rpb-chessboard.php Passed 13 tests
The entry point to "RPB Chessboard" version 7.7.1 is a PHP file that has certain tags in its header comment area
89 characters long description:
This plugin allows you to typeset and display chess diagrams and PGN-encoded chess games.
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
Everything looks great! No dangerous files found in this plugin11,599 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 11 | 2,552 | 2,994 | 6,965 |
PHP | 66 | 1,062 | 2,129 | 3,801 |
CSS | 5 | 122 | 78 | 832 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 10.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 5 | |
Classes | 32 | |
▷ Abstract classes | 8 | 25.00% |
▷ Concrete classes | 24 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 257 | |
▷ Static methods | 54 | 21.01% |
▷ Public methods | 157 | 61.09% |
▷ Protected methods | 46 | 17.90% |
▷ Private methods | 54 | 21.01% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
135 PNG files occupy 0.48MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
third-party-libs/jquery/images/ui-icons_cd0a0a_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |
build/images/cburnett-bb.ea6f2416.png | 1.66KB | 1.65KB | ▼ 0.59% |
images/undefined-wb.png | 2.20KB | 1.88KB | ▼ 14.63% |
build/images/celtic-bb.e9ae0c1c.png | 5.35KB | 2.99KB | ▼ 44.19% |
build/images/eyes-wn.91dfea2b.png | 4.84KB | 2.62KB | ▼ 45.91% |