78% wp-auto-featured-image

Code Review | WordPress Default Featured Image

WordPress plugin WordPress Default Featured Image scored78%from 54 tests.

About plugin

  • Plugin page: wp-auto-featured-...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Apr 20, 2014
  • Latest release: Apr 29, 2023
  • Number of updates: 50
  • Update frequency: every 65.9 days
  • Top authors: sanny_rss (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /39,385 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by WordPress Default Featured Image
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.19 ▼6.32
Dashboard /wp-admin3.32 ▼0.0344.32 ▼18.40
Posts /wp-admin/edit.php3.37 ▲0.0145.46 ▼3.64
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.77 ▼15.57
Media Library /wp-admin/upload.php3.24 ▲0.0135.85 ▲1.60
WP Default Featured Image /wp-admin/options-general.php?page=wp_auto_featured_image3.2131.85

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WordPress Default Featured Image
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3513.18 ▼1.031.69 ▼0.1335.80 ▼4.92
Dashboard /wp-admin2,212 ▲244.80 ▼0.09107.81 ▼14.6042.10 ▼2.44
Posts /wp-admin/edit.php2,095 ▲62.01 ▲0.0235.92 ▼3.5136.60 ▲2.11
Add New Post /wp-admin/post-new.php1,542 ▲2318.30 ▼4.98636.55 ▼40.0663.87 ▲14.52
Media Library /wp-admin/upload.php1,394 ▲64.25 ▲0.0093.83 ▼14.9840.21 ▼4.13
WP Default Featured Image /wp-admin/options-general.php?page=wp_auto_featured_image1,1733.3154.6561.29

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp_auto_featured_image
    • > Notice in wp-content/plugins/wp-auto-featured-image/wp-auto-featured-image.php+185
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 get_option() in wp-content/plugins/wp-auto-featured-image/wp-auto-featured-image.php:30

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: featured image, auto featured image, auto post thumbnail, default featured image, wordpress post thumbnail...

wp-auto-featured-image/wp-auto-featured-image.php 92% from 13 tests

Analyzing the main PHP file in "WordPress Default Featured Image" version 1.5.1
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 179 characters long)

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
Everything looks great! No dangerous files found in this plugin377 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13153235
CSS100104
JavaScript1183338

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected