Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.88ms] Passed 4 tests
This is a short check of server-side resources used by Kittens for Comments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.14 ▼6.49 |
Dashboard /wp-admin | 3.34 ▲0.03 | 44.35 ▼4.05 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 43.78 ▼8.10 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 101.52 ▲4.30 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.96 ▲3.14 |
WtWM Plugins /wp-admin/admin.php?page=wwm_plugins | 3.20 | 31.46 |
Kittens for Comments /wp-admin/admin.php?page=kittens-for-comments | 3.23 | 31.51 |
Server storage [IO: ▲1.53MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/kittens-for-comments/" and "wp-content/uploads/"
- (new file) wp-content/cache/seraphinite-accelerator/at
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Kittens for Comments
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲87 | 14.80 ▲0.42 | 1.69 ▲0.12 | 35.73 ▼10.63 |
Dashboard /wp-admin | 2,228 ▲40 | 5.85 ▲0.94 | 97.72 ▼4.51 | 70.56 ▲28.00 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.00 ▼0.05 | 35.37 ▼6.48 | 33.32 ▼1.26 |
Add New Post /wp-admin/post-new.php | 1,687 ▲173 | 22.47 ▲4.83 | 693.79 ▲4.82 | 63.13 ▲14.55 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.18 ▼0.01 | 95.49 ▼14.08 | 77.83 ▲33.92 |
WtWM Plugins /wp-admin/admin.php?page=wwm_plugins | 820 | 2.01 | 24.71 | 24.93 |
Kittens for Comments /wp-admin/admin.php?page=kittens-for-comments | 800 | 2.02 | 23.60 | 28.49 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=wwm_plugins
- > Notice in wp-content/plugins/kittens-for-comments/kittens4comments.php+103
Undefined variable: wwm_plugin_links
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kittens-for-comments/kittens4comments.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (The panel that appears when your comment form comes in to view), #2 (Kitten!)
kittens-for-comments/kittens4comments.php 85% from 13 tests
Analyzing the main PHP file in "Kittens for Comments" version 3.0.2
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 164 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("kittens-for-comments.php" instead of "kittens4comments.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin258 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 26 | 82 | 105 |
CSS | 4 | 5 | 12 | 75 |
Markdown | 1 | 22 | 0 | 50 |
JavaScript | 4 | 2 | 13 | 28 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.86MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/overlay.png | 0.11KB | 0.15KB | 0.00% |
screenshot-2.png | 733.23KB | 268.17KB | ▼ 63.43% |
css/images/border.png | 0.07KB | 0.10KB | 0.00% |
images/wwm_wp_menu.png | 3.72KB | 0.74KB | ▼ 80.06% |
screenshot-1.png | 137.84KB | 64.85KB | ▼ 52.95% |