Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.34MB] [CPU: ▼17.04ms] Passed 4 tests
This is a short check of server-side resources used by JSM Inherit Parent Featured Image
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.03 | 32.53 ▼6.18 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.33 ▼9.65 |
Posts /wp-admin/edit.php | 3.29 ▼0.07 | 37.29 ▼5.11 |
Add New Post /wp-admin/post-new.php | 4.62 ▼1.27 | 40.97 ▼47.23 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 38.61 ▲8.33 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for JSM Inherit Parent Featured Image
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.41 ▲0.05 | 1.67 ▲0.01 | 44.09 ▼0.72 |
Dashboard /wp-admin | 2,189 ▲9 | 5.64 ▼0.02 | 92.41 ▼8.16 | 43.52 ▲0.98 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.95 ▼0.06 | 34.51 ▼2.09 | 34.29 ▲1.37 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.25 ▲0.33 | 670.03 ▲69.48 | 52.33 ▲1.93 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.18 ▼0.08 | 100.24 ▼0.02 | 44.14 ▲0.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/inherit-featured-image/inherit-featured-image.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: featured, parent, inherit, image
inherit-featured-image/inherit-featured-image.php Passed 13 tests
The main PHP script in "JSM Inherit Parent Featured Image" version 2.1.1 is automatically included on every request by WordPress
94 characters long description:
Inherit the featured image from the Post, Page, or Custom Post Type parent, grand-parent, etc.
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
Everything looks great! No dangerous files found in this plugin116 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 49 | 50 | 74 |
PO File | 1 | 5 | 5 | 25 |
Markdown | 1 | 7 | 0 | 17 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 6 | |
▷ Static methods | 4 | 66.67% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 16.67% |
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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin