Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼257.40ms] Passed 4 tests
A check of server-side resources used by Genesis Featured Image Header
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.00 | 34.81 ▼0.41 |
Dashboard /wp-admin | 3.06 ▲0.01 | 40.52 ▼4.99 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 39.77 ▲3.13 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 90.72 ▼1,020.12 |
Media Library /wp-admin/upload.php | 3.00 ▼0.01 | 33.41 ▼4.07 |
Featured Images /wp-admin/admin.php?page=gfih-settings | 2.74 | 20.39 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 3 new options
New WordPress options |
---|
gfih_on_product |
gfih_on_pages |
gfih_action_location |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Genesis Featured Image Header
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,702 ▲96 | 16.16 ▲0.73 | 7.53 ▼0.57 | 53.26 ▲1.71 |
Dashboard /wp-admin | 2,962 ▲109 | 5.96 ▲0.12 | 138.37 ▼12.46 | 95.85 ▼9.71 |
Posts /wp-admin/edit.php | 2,703 ▼0 | 2.69 ▲0.01 | 62.66 ▼2.90 | 89.41 ▼2.16 |
Add New Post /wp-admin/post-new.php | 1,481 ▼372 | 17.11 ▼1.96 | 336.80 ▼24.75 | 109.81 ▲6.82 |
Media Library /wp-admin/upload.php | 1,772 ▼3 | 5.01 ▼0.02 | 140.40 ▼16.89 | 112.04 ▼9.68 |
Featured Images /wp-admin/admin.php?page=gfih-settings | 28 | 0.90 | 0.05 | 10.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/genesis-featured-image-header/lib/amplify.php
- > /wp-content/plugins/genesis-featured-image-header/genesis-featured-image-header.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=gfih-settings
- > Network (severe)
wp-admin/admin.php?page=gfih-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: header, genesis, custom post type, featured image
genesis-featured-image-header/genesis-featured-image-header.php Passed 13 tests
The primary PHP file in "Genesis Featured Image Header" version 1.2.11 is used by WordPress to initiate all plugin functionality
110 characters long description:
Easily add a featured image to the header of every page on your site including Custom Post Type archive pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin540 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 59 | 116 | 518 |
JavaScript | 1 | 12 | 4 | 22 |
PHP code Passed 2 tests
An overview of 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.43 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 8 | 66.67% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.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 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin