Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.74ms] Passed 4 tests
An overview of server-side resources used by Kama Thumbnail
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.11 ▼1.23 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.53 ▼1.66 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.14 ▼1.73 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 90.71 ▲1.68 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.17 ▲1.89 |
Kama Thumbnail /wp-admin/options-general.php?page=kama_thumb | 3.30 | 31.60 |
Server storage [IO: ▲0.13MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options |
---|
kama_thumb_version |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
kama_thumbnail |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Kama Thumbnail
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.35 ▼0.05 | 1.62 ▼0.24 | 43.59 ▼0.62 |
Dashboard /wp-admin | 2,202 ▲22 | 5.56 ▲0.03 | 82.16 ▼10.77 | 37.44 ▼1.54 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▼0.01 | 33.82 ▼8.95 | 34.62 ▼7.34 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 18.25 ▼4.84 | 610.80 ▼70.06 | 70.04 ▲15.12 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.29 ▲0.09 | 95.76 ▼8.53 | 41.99 ▼0.68 |
Kama Thumbnail /wp-admin/options-general.php?page=kama_thumb | 1,029 | 1.99 | 22.08 | 32.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/kama-thumbnail/uninstall.php+30
rmdir(wp-content/cache/thumb): No such file or directory
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/kama-thumbnail/functions.php:20
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/kama-thumbnail/classes/CLI_Command.php:8
- > PHP Fatal error
Trait 'Kama_Thumbnail\\Make_Thumb__Helpers' not found in wp-content/plugins/kama-thumbnail/classes/Make_Thumb.php on line 9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== kama-thumbnail ===
)
kama-thumbnail/kama_thumbnail.php 69% from 13 tests
"Kama Thumbnail" version 3.5.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("kama-thumbnail.php" instead of "kama_thumbnail.php")
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
- Description: The description should be shorter than 140 characters (currently 276 characters long)
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
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
Everything looks great! No dangerous files found in this plugin1,896 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 712 | 814 | 1,896 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 32.73 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 165.00 |
Average method complexity | 4.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 89 | |
▷ Static methods | 17 | 19.10% |
▷ Public methods | 54 | 60.67% |
▷ Protected methods | 20 | 22.47% |
▷ Private methods | 15 | 16.85% |
Functions | 20 | |
▷ Named functions | 12 | 60.00% |
▷ Anonymous functions | 8 | 40.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected