Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼9.07ms] Passed 4 tests
Analyzing server-side resources used by HoweScape Unity3d WebGL
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 42.64 ▲0.23 |
Dashboard /wp-admin | 3.55 ▲0.20 | 46.95 ▼14.58 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 50.93 ▲1.14 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 84.45 ▼23.05 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 44.33 ▲5.30 |
HoweScape Unity3d Game Settings /wp-admin/options-general.php?page=hs_unity3d_web_gl_setting | 3.44 | 34.08 |
Server storage [IO: ▲90.21MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please fix the following
- The filesystem usage should be lower than 25MB (currently using 90.21MB)
Filesystem: 103 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HoweScape Unity3d WebGL
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 14.89 ▲0.54 | 1.95 ▲0.25 | 44.29 ▲3.23 |
Dashboard /wp-admin | 2,212 ▲24 | 5.85 ▲0.90 | 107.87 ▼9.08 | 40.49 ▼14.74 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 1.99 ▼0.07 | 40.74 ▼0.45 | 36.61 ▼1.83 |
Add New Post /wp-admin/post-new.php | 1,524 ▼21 | 23.40 ▲5.05 | 695.47 ▲91.49 | 55.41 ▲7.07 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.20 ▲0.01 | 111.90 ▲5.27 | 46.90 ▲0.02 |
HoweScape Unity3d Game Settings /wp-admin/options-general.php?page=hs_unity3d_web_gl_setting | 823 | 2.07 | 27.90 | 29.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/howescape-unity3d-webgl/include/hs_unity3d_constants.php:111
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/howescape-unity3d-webgl/hs_unity3d_web_gl.php:21
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/howescape-unity3d-webgl/include/hs_unity3d_constants.php on line 10
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/howescape-unity3d-webgl/include/hs_unity3d_constants.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Screenshots: Screenshot #3 (Screen capture of Space-Shooter game from unity3d.com tutorials) image required
howescape-unity3d-webgl/hs_unity3d_web_gl.php 77% from 13 tests
Analyzing the main PHP file in "HoweScape Unity3d WebGL" version 2.3.6
Please take the time to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: Name the main plugin file the same as the plugin slug ("howescape-unity3d-webgl.php" instead of "hs_unity3d_web_gl.php")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,378,437 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 33,650 | 832 | 1,377,258 |
PHP | 2 | 104 | 372 | 873 |
CSS | 8 | 19 | 45 | 147 |
XML | 2 | 4 | 33 | 77 |
PO File | 1 | 13 | 14 | 42 |
JSON | 3 | 0 | 0 | 40 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 116.00 |
▷ Minimum class complexity | 116.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 6.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.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 | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 84 | |
▷ Global constants | 84 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
31 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
game_support_dir/GeneralTemplateData/ProgressBar.Dark.png | 2.73KB | 0.08KB | ▼ 97.06% |
game_support_dir/GeneralTemplateData/progress-bar-empty-dark.png | 0.09KB | 0.11KB | 0.00% |
game_support_dir/TemplateData_2021_3_9f1/webgl-logo.png | 2.88KB | 1.81KB | ▼ 37.09% |
game_support_dir/GeneralTemplateData/progress-bar-full-light.png | 0.08KB | 0.08KB | 0.00% |
game_support_dir/GeneralTemplateData/progressEmpty.Dark.png | 0.15KB | 0.11KB | ▼ 26.45% |