Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.94ms] Passed 4 tests
Analyzing server-side resources used by Term Featured Image Fallback
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.03 ▼2.23 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.20 ▲3.15 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.62 ▼2.44 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 95.79 ▼8.08 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 33.19 ▼3.01 |
Term featured images /wp-admin/themes.php?page=term-featured-image-options | 3.23 | 34.65 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Term Featured Image Fallback
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.26 ▼1.17 | 1.78 ▼0.11 | 41.68 ▼2.71 |
Dashboard /wp-admin | 2,204 ▲16 | 5.82 ▼0.07 | 103.43 ▼6.97 | 40.19 ▲0.80 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.99 ▼0.04 | 39.79 ▼2.11 | 35.40 ▲0.50 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 18.56 ▲0.33 | 581.07 ▼18.51 | 50.85 ▼4.95 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.22 ▼0.01 | 95.50 ▲0.88 | 40.07 ▼1.30 |
Term featured images /wp-admin/themes.php?page=term-featured-image-options | 3,312 | 3.32 | 48.18 | 26.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/term-featured-image-fallback/methods/post-functions.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/term-featured-image-fallback/methods/term-fields.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/term-featured-image-fallback/methods/page-options.php:5
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in term-featured-image-fallback/assets to your readme.txt
term-featured-image-fallback/main.php 92% from 13 tests
"Term Featured Image Fallback" version 1.0.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("term-featured-image-fallback.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected804 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 69 | 152 | 562 |
PO File | 2 | 52 | 54 | 173 |
JavaScript | 2 | 4 | 6 | 38 |
CSS | 1 | 4 | 0 | 31 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 10.00% |
Functions | 25 | |
▷ Named functions | 13 | 52.00% |
▷ Anonymous functions | 12 | 48.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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/images/imgdel.png | 3.56KB | 1.03KB | ▼ 71.06% |
core/images/add-image.png | 2.97KB | 1.85KB | ▼ 37.70% |
core/images/list-item.png | 0.19KB | 0.20KB | 0.00% |