Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼295.99ms] Passed 4 tests
This is a short check of server-side resources used by Snake
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.41 | 82.84 ▲49.52 |
Dashboard /wp-admin | 3.42 ▲0.01 | 52.03 ▲18.30 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 38.60 ▼2.39 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 99.49 ▼1,192.15 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 40.76 ▼7.70 |
Snake /wp-admin/options-general.php?page=snake | 3.27 | 22.13 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options |
---|
snake_rounded_borders |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Snake
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲14 | 16.04 ▲0.42 | 7.39 ▲0.65 | 2.29 ▼0.41 |
Dashboard /wp-admin | 2,897 ▲40 | 6.13 ▼0.00 | 128.16 ▲1.04 | 200.63 ▼17.77 |
Posts /wp-admin/edit.php | 2,690 ▼1 | 3.24 ▲0.02 | 64.17 ▼5.51 | 148.96 ▼12.83 |
Add New Post /wp-admin/post-new.php | 1,664 ▼26 | 16.33 ▼4.81 | 459.18 ▼39.33 | 171.84 ▼1.20 |
Media Library /wp-admin/upload.php | 1,703 ▲8 | 5.53 ▲0.04 | 164.29 ▲3.55 | 210.33 ▼209.81 |
Snake /wp-admin/options-general.php?page=snake | 1,056 | 2.44 | 68.68 | 180.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/snake/snake.php:28
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: snake, game
snake/snake.php Passed 13 tests
"Snake" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
42 characters long description:
Let your users play snake on your website!
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
Success! There were no dangerous files found in this plugin271 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 31 | 0 | 164 |
CSS | 1 | 8 | 0 | 60 |
PHP | 1 | 12 | 23 | 47 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin