Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.18MB] [CPU: ▼6.85ms] Passed 4 tests
Server-side resources used by Chessgame Shizzle
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 35.51 ▼3.53 |
Dashboard /wp-admin | 3.48 ▲0.18 | 45.01 ▼2.63 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 43.90 ▼3.85 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 83.17 ▼17.40 |
Media Library /wp-admin/upload.php | 3.41 ▲0.19 | 35.04 ▲3.20 |
Import /wp-admin/edit.php?post_type=cs_chessgame&page=cs_import | 3.39 | 32.84 |
Categories /wp-admin/edit-tags.php?taxonomy=cs_category&post_type=cs_chessgame | 3.41 | 34.60 |
About /wp-admin/edit.php?post_type=cs_chessgame&page=cs_about | 3.38 | 30.42 |
All Chessgames /wp-admin/edit.php?post_type=cs_chessgame | 3.46 | 37.01 |
Settings /wp-admin/edit.php?post_type=cs_chessgame&page=cs_settings | 3.39 | 30.77 |
Export /wp-admin/edit.php?post_type=cs_chessgame&page=cs_export | 3.40 | 34.93 |
Tags /wp-admin/edit-tags.php?taxonomy=cs_tag&post_type=cs_chessgame | 3.41 | 32.77 |
New Chessgame /wp-admin/post-new.php?post_type=cs_chessgame | 3.67 | 63.69 |
Server storage [IO: ▲2.58MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 558 new files
Database: no new tables, 19 new options
New WordPress options |
---|
widget_featured-chessgame |
widget_search-chessgame |
widget_theysaidso_widget |
widget_recent-chessgames |
chessgame_shizzle-piecetheme |
theysaidso_admin_options |
widget_newest-chessgame |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Chessgame Shizzle
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,005 ▲244 | 14.23 ▼0.12 | 7.87 ▲6.24 | 41.62 ▲5.51 |
Dashboard /wp-admin | 2,283 ▲105 | 5.06 ▼0.51 | 85.42 ▼11.04 | 38.22 ▼5.16 |
Posts /wp-admin/edit.php | 2,188 ▲88 | 2.51 ▲0.53 | 39.94 ▼2.72 | 31.13 ▼4.30 |
Add New Post /wp-admin/post-new.php | 1,600 ▲72 | 23.29 ▲0.39 | 676.28 ▲1.72 | 56.37 ▼4.44 |
Media Library /wp-admin/upload.php | 1,488 ▲88 | 4.84 ▲0.63 | 95.28 ▲2.08 | 41.14 ▼1.38 |
Import /wp-admin/edit.php?post_type=cs_chessgame&page=cs_import | 939 | 2.01 | 31.17 | 29.86 |
Categories /wp-admin/edit-tags.php?taxonomy=cs_category&post_type=cs_chessgame | 1,365 | 2.08 | 30.77 | 29.08 |
About /wp-admin/edit.php?post_type=cs_chessgame&page=cs_about | 975 | 2.00 | 28.05 | 24.96 |
All Chessgames /wp-admin/edit.php?post_type=cs_chessgame | 1,203 | 2.23 | 37.22 | 28.62 |
Settings /wp-admin/edit.php?post_type=cs_chessgame&page=cs_settings | 1,493 | 2.19 | 31.46 | 24.03 |
Export /wp-admin/edit.php?post_type=cs_chessgame&page=cs_export | 924 | 2.23 | 29.57 | 24.68 |
Tags /wp-admin/edit-tags.php?taxonomy=cs_tag&post_type=cs_chessgame | 1,340 | 2.08 | 32.82 | 29.35 |
New Chessgame /wp-admin/post-new.php?post_type=cs_chessgame | 5,916 | 9.14 | 211.26 | 80.61 |
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: 10 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-chessgames
- widget_recent-posts
- widget_featured-chessgame
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_newest-chessgame
- widget_search-chessgame
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 36× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/chessgame-shizzle/frontend/cs-ajax-mfen.php
- > /wp-content/plugins/chessgame-shizzle/admin/cs-hooks.php
- > /wp-content/plugins/chessgame-shizzle/admin/cs-meta-box-preview.php
- > /wp-content/plugins/chessgame-shizzle/admin/cs-page-about.php
- > /wp-content/plugins/chessgame-shizzle/functions/cs-pgn.php
- > /wp-content/plugins/chessgame-shizzle/functions/cs-formatting.php
- > /wp-content/plugins/chessgame-shizzle/admin/cs-page-export.php
- > /wp-content/plugins/chessgame-shizzle/thirdparty/pgn4web/cs-preview-iframe.php
- > /wp-content/plugins/chessgame-shizzle/admin/cs-page-import.php
- > /wp-content/plugins/chessgame-shizzle/functions/cs-settings.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/chessgame-shizzle/frontend/widgets/cs-widget-newest-chessgame.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chessgame-shizzle/functions/cs-post-meta.php:43
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/chessgame-shizzle/frontend/widgets/cs-widget-search.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/chessgame-shizzle/frontend/widgets/cs-widget-featured-chessgame.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chessgame-shizzle/frontend/cs-shortcode-simple-list-search.php:104
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/chessgame-shizzle/chessgame-shizzle.php:78
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chessgame-shizzle/chessgame-shizzle-hooks.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/chessgame-shizzle/frontend/cs-shortcode-lessons.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/chessgame-shizzle/frontend/cs-shortcode-chessgame.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chessgame-shizzle/thirdparty/pgn4web/cs-pgn4web.php:29
- > 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 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Screenshot #1 (Test...) image not found
chessgame-shizzle/chessgame-shizzle.php 85% from 13 tests
Analyzing the main PHP file in "Chessgame Shizzle" version 1.2.7
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/lang/")
- Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin15,653 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 63 | 1,684 | 2,012 | 8,604 |
JavaScript | 4 | 789 | 293 | 3,862 |
CSS | 4 | 207 | 179 | 2,108 |
SVG | 12 | 12 | 12 | 778 |
Markdown | 1 | 21 | 0 | 301 |
HTML | 1 | 1 | 0 | 0 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 108)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 396.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 108.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 170 | |
▷ Static methods | 2 | 1.18% |
▷ Public methods | 126 | 74.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 44 | 25.88% |
Functions | 133 | |
▷ Named functions | 133 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 26 | |
▷ Global constants | 4 | 15.38% |
▷ Class constants | 22 | 84.62% |
▷ Public constants | 22 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
372 PNG files occupy 1.25MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
thirdparty/piecethemes/smart/102/wq.png | 7.00KB | 4.57KB | ▼ 34.79% |
thirdparty/piecethemes/magnetic/178/wk.png | 1.82KB | 0.87KB | ▼ 52.39% |
thirdparty/piecethemes/xboard/100/wk.png | 4.56KB | 2.68KB | ▼ 41.12% |
thirdparty/piecethemes/uscf/80/bb.png | 2.72KB | 2.14KB | ▼ 21.45% |
thirdparty/piecethemes/motif/168/wn.png | 1.50KB | 0.71KB | ▼ 52.19% |