68% wp-autoset-featured-image-plus

Code Review | WP Autoset Featured Image Plus

WordPress plugin WP Autoset Featured Image Plus scored68%from 54 tests.

About plugin

  • Plugin page: wp-autoset-featur...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.2.3
  • WordPress version: 6.3.1
  • First release: Apr 16, 2015
  • Latest release: Sep 2, 2015
  • Number of updates: 28
  • Update frequency: every 5.0 days
  • Top authors: lucia.intelisano (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active /16,729 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.92MB] [CPU: ▼36.80ms] Passed 4 tests

Analyzing server-side resources used by WP Autoset Featured Image Plus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0544.65 ▲0.98
Dashboard /wp-admin3.07 ▼0.3126.99 ▼37.20
Posts /wp-admin/edit.php3.08 ▼0.3226.54 ▼28.99
Add New Post /wp-admin/post-new.php3.08 ▼2.8523.75 ▼70.74
Media Library /wp-admin/upload.php3.08 ▼0.1926.84 ▼10.25
WP Auto Set Featured Image Plus /wp-admin/options-general.php?page=wp-autoset-featured-image-plus/wpautosetfeaturedimageplus.php3.0827.29

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Autoset Featured Image Plus
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.62 ▲0.471.81 ▲0.2943.52 ▲0.97
Dashboard /wp-admin2,199 ▲195.60 ▼0.0886.57 ▼1.5240.34 ▲0.77
Posts /wp-admin/edit.php2,104 ▲41.98 ▲0.0236.22 ▼4.2633.01 ▼6.48
Add New Post /wp-admin/post-new.php1,530 ▲423.41 ▲2.41664.10 ▼57.4452.55 ▼13.29
Media Library /wp-admin/upload.php1,404 ▲14.17 ▼0.04107.35 ▲1.1846.80 ▼3.01
WP Auto Set Featured Image Plus /wp-admin/options-general.php?page=wp-autoset-featured-image-plus/wpautosetfeaturedimageplus.php8012.0223.8226.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-autoset-featured-image-plus/wpautosetfeaturedimageplus.php
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-autoset-featured-image-plus/wpautosetfeaturedimageplus.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
6 plugin tags: image, featured image, featured, url, featured images...

wp-autoset-featured-image-plus/wpautosetfeaturedimageplus.php 92% from 13 tests

This is the main PHP file of "WP Autoset Featured Image Plus" version 3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-autoset-featured-image-plus.php" instead of "wpautosetfeaturedimageplus.php")

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
There were no executable files found in this plugin205 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP110220205

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions9
▷ Named functions9100.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 are no PNG files in this plugin