Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.04ms] Passed 4 tests
Server-side resources used by Dino Game - Embed Google Chrome Dinosaur Game in WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.20 ▲0.84 |
Dashboard /wp-admin | 3.36 ▲0.05 | 50.11 ▼2.78 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 54.27 ▼3.58 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.19 ▼18.63 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 41.11 ▲2.60 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/dino-game/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Dino Game - Embed Google Chrome Dinosaur Game in WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲29 | 13.29 ▼1.09 | 1.59 ▼0.60 | 39.83 ▲0.16 |
Dashboard /wp-admin | 2,221 ▲15 | 4.87 ▼0.01 | 105.31 ▼3.22 | 40.43 ▼4.81 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.04 | 39.73 ▼2.34 | 34.14 ▼4.88 |
Add New Post /wp-admin/post-new.php | 6,200 ▲4,655 | 19.30 ▼3.76 | 925.46 ▲222.38 | 56.31 ▼4.11 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▲0.03 | 96.70 ▼11.83 | 44.24 ▼8.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: block, gutenberg, dinosaur, chrome, dino...
dino-game/dino-game.php 92% from 13 tests
The main PHP script in "Dino Game - Embed Google Chrome Dinosaur Game in WordPress" version 1.1.0 is automatically included on every request by WordPress
It is important to fix the following:
- 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,960 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 413 | 685 | 1,815 |
PHP | 2 | 31 | 35 | 98 |
CSS | 1 | 9 | 9 | 47 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 4 | |
▷ Named functions | 4 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/img/game-sprites-2x.png | 3.17KB | 3.52KB | 0.00% |
src/img/dinogame-cover.png | 24.60KB | 2.50KB | ▼ 89.83% |
src/img/game-sprites-1x.png | 2.58KB | 2.69KB | 0.00% |
src/img/dino-game-block-icon.png | 6.08KB | 0.74KB | ▼ 87.80% |