Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.10ms] Passed 4 tests
Server-side resources used by Category Thumbnail Excerpt
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 47.49 ▲1.06 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.65 ▼0.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.20 ▼5.81 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 99.73 ▼10.09 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.26 ▼0.48 |
Category Thumbnail List /wp-admin/options-general.php?page=category-thumbnail-list | 3.18 | 38.36 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Category Thumbnail Excerpt: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.19 ▼0.39 | 1.86 ▲0.22 | 42.19 ▼3.36 |
Dashboard /wp-admin | 2,199 ▲19 | 5.54 ▼0.04 | 82.53 ▼12.52 | 39.02 ▼1.25 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.03 ▲0.00 | 34.59 ▼11.08 | 31.59 ▼5.61 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.11 ▲0.01 | 652.20 ▼13.94 | 52.86 ▼10.58 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.10 ▼0.12 | 100.94 ▼10.73 | 45.08 ▼6.57 |
Category Thumbnail List /wp-admin/options-general.php?page=category-thumbnail-list | 832 | 2.00 | 28.24 | 25.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=category-thumbnail-list
- > Notice in wp-content/plugins/categoy-thumbnail-excerpt/categoy-thumbnail-list.php+88
Undefined index: save_category-thumbnail-list_settings
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/categoy-thumbnail-excerpt/categoy-thumbnail-list.php: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 93% 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:
- Screenshots: Screenshot #1 (The plugin in action.) image required
categoy-thumbnail-excerpt/categoy-thumbnail-list.php 92% from 13 tests
The entry point to "Category Thumbnail Excerpt" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("categoy-thumbnail-excerpt.php" instead of "categoy-thumbnail-list.php")
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
There were no executable files found in this plugin182 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 15 | 9 | 125 |
CSS | 1 | 9 | 5 | 57 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 2 | |
▷ Global constants | 2 | 100.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
1 PNG file occupies 0.24MB with 0.17MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 242.46KB | 64.71KB | ▼ 73.31% |