90% check-missing-featured-images

Code Review | Check Missing Featured Images

WordPress plugin Check Missing Featured Images scored90%from 54 tests.

About plugin

  • Plugin page: check-missing-fea...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 18, 2019
  • Latest release: Mar 3, 2020
  • Number of updates: 8
  • Update frequency: every 47.4 days
  • Top authors: munger41 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,065 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
Install script ran successfully

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

This is a short check of server-side resources used by Check Missing Featured Images
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.29 ▼5.18
Dashboard /wp-admin3.33 ▼0.0146.20 ▼13.09
Posts /wp-admin/edit.php3.38 ▲0.0248.28 ▼2.60
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.66 ▼8.86
Media Library /wp-admin/upload.php3.26 ▲0.0236.87 ▲0.54
Check featured images /wp-admin/options-general.php?page=cmfi-check-featured-images3.2230.44

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Check Missing Featured Images
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.38 ▼0.371.93 ▲0.1740.59 ▼1.08
Dashboard /wp-admin2,210 ▲195.79 ▲0.8998.90 ▼4.1237.52 ▼4.95
Posts /wp-admin/edit.php2,090 ▲42.01 ▼0.0439.70 ▲3.1734.11 ▲0.05
Add New Post /wp-admin/post-new.php1,536 ▲2223.22 ▲5.53625.40 ▼85.5850.27 ▼4.14
Media Library /wp-admin/upload.php1,392 ▲134.17 ▼0.0995.63 ▼5.0442.00 ▼4.58
Check featured images /wp-admin/options-general.php?page=cmfi-check-featured-images8942.0222.5833.45

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: control, check, featured, images, image...

check-missing-featured-images/check-missing-featured-images.php Passed 13 tests

The main file in "Check Missing Featured Images" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
29 characters long description:
Check missing featured images

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
Everything looks great! No dangerous files found in this plugin179 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12821179

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
No PNG files were detected