84% rv-auto-featured-image

Code Review | RV Auto Featured Image

WordPress plugin RV Auto Featured Image scored84%from 54 tests.

About plugin

  • Plugin page: rv-auto-featured-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.5
  • WordPress version: 6.3.1
  • First release: Aug 15, 2020
  • Latest release: Aug 15, 2020
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: maheshmaharjan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,095 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.20ms] Passed 4 tests

A check of server-side resources used by RV Auto Featured Image
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.80 ▼1.78
Dashboard /wp-admin3.31 ▼0.0444.50 ▼19.95
Posts /wp-admin/edit.php3.36 ▲0.0046.59 ▲2.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.95 ▼16.14
Media Library /wp-admin/upload.php3.23 ▲0.0033.10 ▲1.07

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

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

Browser metrics Passed 4 tests

A check of browser resources used by RV Auto Featured Image
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.23 ▼1.424.89 ▲3.0942.16 ▼0.60
Dashboard /wp-admin2,211 ▲205.90 ▲1.0398.71 ▼6.4942.27 ▲0.02
Posts /wp-admin/edit.php2,100 ▲112.00 ▼0.0241.93 ▲2.9738.31 ▲3.34
Add New Post /wp-admin/post-new.php1,422 ▼11617.11 ▼6.29522.52 ▼155.9740.86 ▼17.78
Media Library /wp-admin/upload.php1,393 ▲54.14 ▼0.03107.82 ▲7.9745.67 ▲2.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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)
Even though no errors were found, this is by no means an exhaustive test

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 fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/rv-auto-featured-image/rv-auto-featured-image.php

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: image, auto-featured-image, easy-featured-image, featured-image

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

The principal PHP file in "RV Auto Featured Image" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 152 characters long)

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
Good job! No executable or dangerous file extensions detected33 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1143033

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.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