90% minimum-featured-image-size

Code Review | Minimum Featured Image Size

WordPress plugin Minimum Featured Image Size scored90%from 54 tests.

About plugin

  • Plugin page: minimum-featured-...
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.5-5.3.2
  • WordPress version: 6.3.1
  • First release: Sep 16, 2017
  • Latest release: Aug 26, 2020
  • Number of updates: 22
  • Update frequency: every 49.2 days
  • Top authors: corgdesign (86.36%)corgmo (18.18%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /14,943 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.08MB] [CPU: ▼2.42ms] Passed 4 tests

Server-side resources used by Minimum Featured Image Size
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.44 ▼4.14
Dashboard /wp-admin3.38 ▲0.0849.82 ▼0.38
Posts /wp-admin/edit.php3.43 ▲0.0847.48 ▲1.27
Add New Post /wp-admin/post-new.php5.96 ▲0.0882.76 ▼6.41
Media Library /wp-admin/upload.php3.31 ▲0.0835.86 ▲2.11
Minimum Featured Image Size /wp-admin/options-general.php?page=mfis_settings3.2832.07

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Minimum Featured Image Size
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7614.74 ▲0.361.80 ▼0.0043.91 ▼0.24
Dashboard /wp-admin2,217 ▲294.92 ▲0.02102.03 ▼8.2737.24 ▼8.08
Posts /wp-admin/edit.php2,100 ▲112.02 ▲0.0035.48 ▼7.3234.10 ▼5.38
Add New Post /wp-admin/post-new.php1,533 ▼018.23 ▼4.79647.38 ▲46.7161.56 ▲4.67
Media Library /wp-admin/upload.php1,402 ▲114.28 ▲0.0996.42 ▲0.7244.99 ▲4.04
Minimum Featured Image Size /wp-admin/options-general.php?page=mfis_settings9332.1126.7837.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • mfis_disable_publishing
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

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

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: minimum image size, featured image, image size

minimum-featured-image-size/mfis.php 92% from 13 tests

"Minimum Featured Image Size" version 2.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("minimum-featured-image-size.php" instead of "mfis.php")

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
Success! There were no dangerous files found in this plugin602 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP118190383
JavaScript29350126
Sass127092
CSS1011

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected