Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.11ms] Passed 4 tests
Server-side resources used by Cat Game
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 41.78 ▲4.56 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.38 ▼4.07 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 51.33 ▼0.97 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.84 ▼20.13 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.28 ▼3.25 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
wp-cat-game-mac-email |
can_compress_scripts |
wp-cat-game-threshold |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Cat Game
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.39 | 1.71 ▲0.12 | 44.47 ▲3.27 |
Dashboard /wp-admin | 2,198 ▲21 | 5.51 ▼0.07 | 86.16 ▼14.39 | 39.50 ▼8.17 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.04 ▲0.10 | 33.82 ▼2.83 | 35.81 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.17 ▼0.48 | 676.85 ▼18.23 | 55.53 ▼4.48 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.03 | 100.20 ▼13.73 | 44.82 ▼2.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- can_compress_scripts
- wp-cat-game-mac-email
- wp-cat-game-threshold
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/cat-game/test/wp-cat-game-test.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Without the plugin.), #2 (With the plugin.), #3 (We have a winner!)
cat-game/wp-cat-game.php 92% from 13 tests
The main file in "Cat Game" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("cat-game.php" instead of "wp-cat-game.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin166 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 50 | 61 | 166 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 25.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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.25MB with 0.15MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/avatar.png | 15.67KB | 7.59KB | ▼ 51.56% |
assets/screenshot-3.png | 129.72KB | 47.99KB | ▼ 63.01% |
assets/screenshot-2.png | 56.45KB | 19.50KB | ▼ 65.45% |
assets/screenshot-1.png | 53.57KB | 18.20KB | ▼ 66.03% |