84% wp-quick-update-featured-image

Code Review | WP Quick Update Featured Image

WordPress plugin WP Quick Update Featured Image scored84%from 54 tests.

About plugin

  • Plugin page: wp-quick-update-f...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Dec 1, 2018
  • Latest release: Dec 10, 2018
  • Number of updates: 3
  • Update frequency: every 5.0 days
  • Top authors: cmitexperts (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /488 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by WP Quick Update Featured Image
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0248.11 ▲2.87
Dashboard /wp-admin3.32 ▲0.0259.22 ▲1.36
Posts /wp-admin/edit.php3.46 ▲0.1157.31 ▲5.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0297.24 ▼0.75
Media Library /wp-admin/upload.php3.25 ▲0.0237.73 ▼2.57

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Quick Update Featured Image
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.001.77 ▼0.1042.11 ▼0.70
Dashboard /wp-admin2,195 ▲215.58 ▼0.0996.20 ▲5.1441.32 ▲0.48
Posts /wp-admin/edit.php2,276 ▲1733.46 ▲1.4882.23 ▲40.6037.91 ▼0.35
Add New Post /wp-admin/post-new.php1,526 ▼023.19 ▲0.22666.84 ▼5.6455.23 ▼1.94
Media Library /wp-admin/upload.php1,391 ▼94.18 ▼0.0281.82 ▼24.7848.12 ▲2.93

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-quick-update-featured-image/wp-quick-update-featured-image.php:63

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (This screen shot is regarding showing posts featured image on lsiting page.), #2 (This screenshot is reagrding when user mouse hover on image it will show controls to add,update and delete featured image.)
The official readme.txt might help

wp-quick-update-featured-image/wp-quick-update-featured-image.php Passed 13 tests

The main file in "WP Quick Update Featured Image" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
49 characters long description:
Update post featured image from listing in admin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected172 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP291972
JavaScript1192167
CSS17033

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/Screenshot_2.png37.11KB19.08KB▼ 48.59%
images/no-image.png29.17KB15.20KB▼ 47.91%
assets/Screenshot_1.png44.82KB19.11KB▼ 57.37%