Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼3.74ms] Passed 4 tests
Server-side resources used by Dinosaur Game
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.86 ▼3.96 |
Dashboard /wp-admin | 3.31 ▼0.04 | 50.65 ▼12.65 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.90 ▲1.01 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.32 ▲0.66 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.33 ▲6.09 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dinosaur Game
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 13.95 ▼0.36 | 2.18 ▲0.50 | 40.98 ▼2.03 |
Dashboard /wp-admin | 2,195 ▲18 | 5.64 ▼0.03 | 90.14 ▼3.83 | 39.49 ▼3.85 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.06 | 39.16 ▲1.09 | 34.44 ▼3.52 |
Add New Post /wp-admin/post-new.php | 1,554 ▲23 | 22.94 ▼0.03 | 650.48 ▲32.24 | 52.98 ▲2.72 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.22 ▲0.08 | 99.61 ▼39.68 | 44.12 ▼4.85 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: chrome, game, shortcode, dinosaur, chromium
dinosaur-game/dinosaur-game.php Passed 13 tests
The primary PHP file in "Dinosaur Game" version 1.0.7 is used by WordPress to initiate all plugin functionality
90 characters long description:
Add the dinosaur game from Google Chrome to your site using the [dinosaur-game] shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,775 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 401 | 675 | 1,677 |
PHP | 3 | 24 | 38 | 56 |
CSS | 2 | 9 | 18 | 42 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
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 | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
game-sprites-1x.png | 2.58KB | 2.69KB | 0.00% |
game-sprites-2x.png | 3.17KB | 3.52KB | 0.00% |