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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.10MB] [CPU: ▼11.84ms] Passed 4 tests
Analyzing server-side resources used by Require Featured Image
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 44.86 ▲2.39 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.36 ▼8.27 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 54.98 ▲5.05 |
Add New Post /wp-admin/post-new.php | 5.45 ▼0.44 | 80.78 ▼38.92 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.74 ▼2.56 |
Req Featured Image /wp-admin/options-general.php?page=rfi | 3.19 | 32.86 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
rfi_post_types |
rfi_enforcement_start |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Require Featured Image
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.70 ▲0.46 | 1.91 ▲0.20 | 43.76 ▲1.23 |
Dashboard /wp-admin | 2,199 ▲31 | 5.66 ▲0.08 | 99.95 ▼13.71 | 44.17 ▼6.41 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.00 ▲0.05 | 41.76 ▲2.70 | 37.25 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,545 ▲11 | 17.94 ▼0.44 | 616.05 ▼82.28 | 70.70 ▼3.52 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.26 ▲0.10 | 101.23 ▼8.27 | 42.92 ▼5.47 |
Req Featured Image /wp-admin/options-general.php?page=rfi | 849 | 2.00 | 23.97 | 29.99 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- rfi_enforcement_start
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- rfi_post_types
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=rfi
- > Notice in wp-content/plugins/require-featured-image/admin-options.php+90
Trying to access array offset on value of type bool
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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/require-featured-image/admin-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/require-featured-image/admin-options.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (The warning that you see when editing a post that doesn't have a featured image set. The "Publish" button is also disabled.), #2 (The settings page, which lets you specify which post types the plugin should operate on.)
require-featured-image/require-featured-image.php Passed 13 tests
Analyzing the main PHP file in "Require Featured Image" version 1.5.0
97 characters long description:
Like it says on the tin: requires posts to have a featured image set before they'll be published.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin294 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 31 | 31 | 187 |
JavaScript | 1 | 14 | 3 | 78 |
JSON | 1 | 1 | 0 | 29 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 20 | |
▷ Named functions | 20 | 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 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 67.85KB | 20.57KB | ▼ 69.68% |
screenshot-2.png | 67.52KB | 19.26KB | ▼ 71.48% |