84% quick-featured-images

Code Review | Quick Featured Images

WordPress plugin Quick Featured Images scored84%from 54 tests.

About plugin

  • Plugin page: quick-featured-im...
  • Plugin version: 13.7.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.2
  • WordPress version: 6.3.1
  • First release: Feb 1, 2014
  • Latest release: Feb 21, 2023
  • Number of updates: 217
  • Update frequency: every 15.2 days
  • Top authors: Hinjiriyo (94.47%)kybernetikservices (5.99%)

Code review

54 tests

User reviews

229 reviews

Install metrics

50,000+ active /944,511 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.40MB] [CPU: ▼1.35ms] Passed 4 tests

Analyzing server-side resources used by Quick Featured Images
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1143.42 ▲3.75
Dashboard /wp-admin3.85 ▲0.5452.35 ▼4.39
Posts /wp-admin/edit.php3.93 ▲0.5763.05 ▲10.93
Add New Post /wp-admin/post-new.php6.37 ▲0.4886.57 ▼13.23
Media Library /wp-admin/upload.php3.71 ▲0.4842.20 ▲8.46
Bulk Edit /wp-admin/admin.php?page=quick-featured-images-tools3.8252.04
Free vs. Pro /wp-admin/admin.php?page=quick-featured-images-comparison3.7738.66
Overview /wp-admin/admin.php?page=quick-featured-images-overview3.7039.50
Default Images /wp-admin/admin.php?page=quick-featured-images-defaults3.9447.54
Settings /wp-admin/admin.php?page=quick-featured-images-settings3.7039.50

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

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

Browser metrics Passed 4 tests

Quick Featured Images: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.18 ▼0.531.88 ▼0.1247.30 ▲7.39
Dashboard /wp-admin2,235 ▲585.64 ▼0.0191.14 ▼3.2339.86 ▼2.12
Posts /wp-admin/edit.php2,343 ▲2433.50 ▲1.4780.35 ▲39.9736.64 ▲0.16
Add New Post /wp-admin/post-new.php1,559 ▲3323.06 ▼0.03670.69 ▲20.6867.68 ▲17.02
Media Library /wp-admin/upload.php1,440 ▲434.12 ▼0.1383.17 ▼18.6843.34 ▼0.96
Bulk Edit /wp-admin/admin.php?page=quick-featured-images-tools1,2733.1541.8778.24
Free vs. Pro /wp-admin/admin.php?page=quick-featured-images-comparison2,2501.9925.4145.94
Overview /wp-admin/admin.php?page=quick-featured-images-overview1,0021.9924.9840.76
Default Images /wp-admin/admin.php?page=quick-featured-images-defaults1,4853.0241.0178.78
Settings /wp-admin/admin.php?page=quick-featured-images-settings1,0252.0022.5736.37

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 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
  • 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Quick_Featured_Images_Tools' not found in wp-content/plugins/quick-featured-images/admin/views/section_overview.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/quick-featured-images/admin/views/filter_post_types.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/quick-featured-images/admin/views/section_header.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/quick-featured-images/admin/views/section_image.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function includes_url() in wp-content/plugins/quick-featured-images/admin/views/section_defaults.php:13
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/quick-featured-images/admin/views/form_select.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/quick-featured-images/admin/views/form_confirm.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/quick-featured-images/admin/views/form_back_to_selection.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_theme_supports() in wp-content/plugins/quick-featured-images/admin/views/form_start.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/quick-featured-images/admin/views/form_refine.php:1

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: featured image, thumbnails, automatic, featured images, bulk set

quick-featured-images/quick-featured-images.php 85% from 13 tests

"Quick Featured Images" version 13.7.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected4,959 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP275112,6264,325
Sass1160434
JavaScript35862181
CSS20115
SVG1004

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity53.14
▷ Minimum class complexity2.00
▷ Maximum class complexity197.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity89.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods143
▷ Static methods128.39%
▷ Public methods8559.44%
▷ Protected methods00.00%
▷ Private methods5840.56%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/no-file.png1.67KB1.41KB▼ 15.65%
admin/assets/images/tick_icon_green.png6.63KB0.38KB▼ 94.27%
admin/assets/images/ks_logo.png2.77KB1.66KB▼ 40.05%
admin/assets/images/logo_pro.png13.35KB5.85KB▼ 56.15%