Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.32MB] [CPU: ▼257.75ms] Passed 4 tests
An overview of server-side resources used by Post Featured Image Generator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.15 ▲0.43 | 41.12 ▲21.50 |
Dashboard /wp-admin | 3.38 ▲0.33 | 38.35 ▼7.61 |
Posts /wp-admin/edit.php | 3.43 ▲0.32 | 45.43 ▲4.83 |
Add New Post /wp-admin/post-new.php | 5.74 ▲0.31 | 92.94 ▼1,025.17 |
Media Library /wp-admin/upload.php | 3.32 ▲0.32 | 30.88 ▼3.03 |
Featured Image Generator /wp-admin/options-general.php?page=fig | 3.14 | 26.18 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 81 new files
Database: no new tables, 11 new options
New WordPress options |
---|
fig_video_min_width |
featured_image_generator_installed |
fig_priority_size |
fig_priority_content |
fig_types |
fig_image_min_width |
fig_video_enabled |
fig_video_min_height |
fig_image_enabled |
fig_image_min_height |
... |
Browser metrics Passed 4 tests
Post Featured Image Generator: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,654 ▲72 | 16.26 ▲0.69 | 7.57 ▼0.10 | 46.71 ▲1.71 |
Dashboard /wp-admin | 2,935 ▲82 | 5.92 ▼0.12 | 135.77 ▼2.66 | 103.56 ▼1.84 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.69 ▲0.01 | 61.79 ▼4.50 | 87.12 ▲0.99 |
Add New Post /wp-admin/post-new.php | 1,854 ▼184 | 17.73 ▼1.35 | 358.30 ▼12.13 | 106.88 ▼2.50 |
Media Library /wp-admin/upload.php | 1,780 ▲8 | 5.03 ▲0.06 | 148.20 ▲3.17 | 110.21 ▼2.44 |
Featured Image Generator /wp-admin/options-general.php?page=fig | 1,342 | 2.56 | 57.48 | 81.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 11 options
- fig_video_min_height
- fig_image_min_width
- fig_video_enabled
- fig_video_min_width
- fig_types
- fig_priority_content
- fig_image_enabled
- fig_image_min_height
- featured_image_generator_installed
- fig_priority_size
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=fig
- > Notice in wp-content/plugins/post-featured-image-generator/library/SWL/View/Element/Form/Element.php+40
Undefined variable: label
- > GET request to /wp-admin/options-general.php?page=fig
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=fig
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=fig
- > Notice in wp-content/plugins/post-featured-image-generator/library/SWL/View/Renderer/Form/Select.php+30
Undefined index: checked
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 take a closer look at the following
- 55× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
require_once(SWL/View/Renderer/Form/Checkbox.php): failed to open stream: No such file or directory in wp-content/plugins/post-featured-image-generator/library/SWL/View/Renderer/Form/Boolean.php on line 14
- > PHP Warning
require_once(View/Element.php): failed to open stream: No such file or directory in wp-content/plugins/post-featured-image-generator/library/SWL/Form/Form.php on line 14
- > PHP Fatal error
require_once(): Failed opening required 'SWL/Action/Manager.php' (include_path='.:/usr/share/php') in wp-content/plugins/post-featured-image-generator/library/SWL/Plugin/Plugin.php on line 14
- > PHP Warning
require_once(SWL/View/Element/Form/Element.php): failed to open stream: No such file or directory in wp-content/plugins/post-featured-image-generator/library/SWL/View/Element/Form/Checkbox.php on line 14
- > PHP Fatal error
require_once(): Failed opening required 'SWL/View/Element/Form/Element.php' (include_path='.:/usr/share/php') in wp-content/plugins/post-featured-image-generator/library/SWL/View/Element/Form/Select.php on line 14
- > PHP Warning
require_once(SWL/View/Element/Container.php): failed to open stream: No such file or directory in wp-content/plugins/post-featured-image-generator/library/SWL/View/Element/Form.php on line 14
- > PHP Warning
require_once(SWL/Page/Admin/Page.php): failed to open stream: No such file or directory in wp-content/plugins/post-featured-image-generator/library/FIG/Page/Admin/Batch.php on line 3
- > PHP Warning
require_once(SWL/View/Element/Form/Element.php): failed to open stream: No such file or directory in wp-content/plugins/post-featured-image-generator/library/SWL/View/Element/Form/Select.php on line 14
- > PHP Fatal error
require_once(): Failed opening required 'SWL/View/Decorator.php' (include_path='.:/usr/share/php') in wp-content/plugins/post-featured-image-generator/library/SWL/View/Decorator/Tag.php on line 14
- > PHP Fatal error
require_once(): Failed opening required 'View/Element.php' (include_path='.:/usr/share/php') in wp-content/plugins/post-featured-image-generator/library/SWL/Metabox/Metabox.php on line 14
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=fig
- > Network (severe)
wp-content/plugins/post-featured-image-generator/library/SWL/SWL/assets/css/admin/page/page.css?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=fig
- > Network (severe)
wp-content/plugins/post-featured-image-generator/library/SWL/SWL/assets/css/admin/page/settings.css?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== post-featured-image-generator ===
)
post-featured-image-generator/post-featured-image-generator.php Passed 13 tests
The principal PHP file in "Post Featured Image Generator" v. 1.0.0 is loaded by WordPress automatically on each request
46 characters long description:
Parse post content and generate featured image
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
No dangerous file extensions were detected3,294 lines of code in 80 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 72 | 553 | 1,363 | 2,038 |
CSS | 7 | 58 | 61 | 1,192 |
JavaScript | 1 | 7 | 0 | 64 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 70 | |
▷ Abstract classes | 6 | 8.57% |
▷ Concrete classes | 64 | 91.43% |
▷ Final classes | 0 | 0.00% |
Methods | 220 | |
▷ Static methods | 3 | 1.36% |
▷ Public methods | 189 | 85.91% |
▷ Protected methods | 29 | 13.18% |
▷ Private methods | 2 | 0.91% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin