Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.33MB] [CPU: ▼19.97ms] Passed 4 tests
Server-side resources used by Featured Image in Content
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.43 ▼0.03 | 36.95 ▼7.13 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.45 ▼4.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.36 ▼5.88 |
Add New Post /wp-admin/post-new.php | 4.61 ▼1.29 | 43.70 ▼62.53 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 36.14 ▼0.80 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Featured Image in Content: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.68 ▲0.33 | 1.73 ▼0.46 | 45.36 ▲1.23 |
Dashboard /wp-admin | 2,195 ▲15 | 5.67 ▼0.00 | 90.23 ▼1.63 | 42.71 ▼2.99 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.00 | 35.60 ▼3.59 | 34.29 ▼4.31 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.27 ▲0.06 | 706.46 ▲41.66 | 58.65 ▼2.85 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.23 ▲0.03 | 99.89 ▼4.30 | 42.12 ▼0.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/featured-image-in-all-posts/featured-image-in-content.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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 need to be fixed:
- Screenshots: Screenshot #1 (Featured image in an image-format post with only a title and featured, displayed in Twenty Ten (which doesn't support featured images). Without the plugin, only the post title displays.) image missing
featured-image-in-all-posts/featured-image-in-content.php 92% from 13 tests
The main PHP script in "Featured Image in Content" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("featured-image-in-all-posts.php" instead of "featured-image-in-content.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected9 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 5 | 24 | 9 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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 | 1 | |
▷ Named functions | 1 | 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.08MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner-772x250.png | 43.17KB | 20.78KB | ▼ 51.87% |
icon-256x256.png | 38.10KB | 18.63KB | ▼ 51.12% |