84% featured-image-in-content

Code Review | Featured Image in Content

WordPress plugin Featured Image in Content scored 84% from 54 tests.

About plugin

  • Plugin page: featured-image-in...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Oct 9, 2015
  • Latest release: Sep 18, 2023
  • Number of updates: 14
  • Update frequency: every 207.3 days
  • Top authors: celloexpressions (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active / 11,971 total downloads

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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.93ms] Passed 4 tests

An overview of server-side resources used by Featured Image in Content
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.08 ▼6.05
Dashboard /wp-admin3.31 ▲0.0045.70 ▼2.35
Posts /wp-admin/edit.php3.36 ▲0.0049.84 ▲5.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.12 ▼6.24
Media Library /wp-admin/upload.php3.23 ▲0.0034.58 ▲2.92

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Featured Image in Content
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.67 ▼0.911.69 ▼0.3238.80 ▼15.41
Dashboard /wp-admin2,206 ▲185.76 ▼0.04109.83 ▼1.9837.80 ▼2.92
Posts /wp-admin/edit.php2,086 ▼31.97 ▼0.0439.02 ▲4.5733.86 ▼1.65
Add New Post /wp-admin/post-new.php1,533 ▲923.17 ▲0.10589.17 ▼42.9950.72 ▼7.58
Media Library /wp-admin/upload.php1,385 ▼64.20 ▲0.0093.29 ▼3.7640.55 ▼1.70

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/featured-image-in-content/featured-image-in-content.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: post thumbnail, featured image

featured-image-in-content/featured-image-in-content.php Passed 13 tests

"Featured Image in Content" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
130 characters long description:
If you switch to a theme that doesn't show featured images on single posts, activate this plugin to show them in the content area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15249

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin