90% featured-image-from-content

Code Review | Featured Image from Content

WordPress plugin Featured Image from Content scored90%from 54 tests.

About plugin

  • Plugin page: featured-image-fr...
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 25, 2023
  • Latest release: Nov 28, 2023
  • Number of updates: 7
  • Update frequency: every 9.4 days
  • Top authors: dhrumilk (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /225 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.08ms] Passed 4 tests

Analyzing server-side resources used by Featured Image from Content
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.38 ▼9.57
Dashboard /wp-admin3.33 ▲0.0345.10 ▼5.55
Posts /wp-admin/edit.php3.38 ▲0.0245.99 ▼3.74
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.99 ▼13.46
Media Library /wp-admin/upload.php3.25 ▲0.0232.44 ▼1.40
Featured Image from Content /wp-admin/options-general.php?page=featured_image_from_content3.2232.16

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Featured Image from Content
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.67 ▲0.331.84 ▲0.0539.19 ▼4.18
Dashboard /wp-admin2,202 ▲255.63 ▲0.0997.44 ▼4.4342.80 ▼4.17
Posts /wp-admin/edit.php2,101 ▲12.01 ▲0.0339.91 ▲1.2635.12 ▼1.05
Add New Post /wp-admin/post-new.php1,529 ▲323.17 ▲0.44682.35 ▲5.6951.90 ▲1.44
Media Library /wp-admin/upload.php1,398 ▲14.16 ▼0.0498.87 ▼6.3541.55 ▼4.36
Featured Image from Content /wp-admin/options-general.php?page=featured_image_from_content8022.0027.9127.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: Please take inspiration from this readme.txt

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

The principal PHP file in "Featured Image from Content" v. 1.2 is loaded by WordPress automatically on each request
118 characters long description:
This plugin is useful for automatically setting featured images from post content if no featured images are available.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin104 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1922104

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin