78% fsm-custom-featured-image-caption

Code Review | FSM Custom Featured Image Caption

WordPress plugin FSM Custom Featured Image Caption scored78%from 54 tests.

About plugin

  • Plugin page: fsm-custom-featur...
  • Plugin version: 1.24
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 7, 2017
  • Latest release: Oct 28, 2022
  • Number of updates: 50
  • Update frequency: every 38.2 days
  • Top authors: fesomia (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

6,000+ active /99,287 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.99ms] Passed 4 tests

A check of server-side resources used by FSM Custom Featured Image Caption
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.03 ▼0.43
Dashboard /wp-admin3.33 ▲0.0344.49 ▼6.39
Posts /wp-admin/edit.php3.44 ▲0.0944.99 ▲3.74
Add New Post /wp-admin/post-new.php5.94 ▲0.0579.95 ▼16.80
Media Library /wp-admin/upload.php3.25 ▲0.0336.44 ▼0.34
FSM Custom Featured Image Caption /wp-admin/options-general.php?page=fsm-custom-featured-image-caption3.2230.77

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for FSM Custom Featured Image Caption
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.62 ▼0.771.82 ▼0.1941.56 ▼9.58
Dashboard /wp-admin2,210 ▲254.89 ▼0.92100.53 ▼16.8540.63 ▼7.10
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0639.63 ▼4.5534.72 ▼5.61
Add New Post /wp-admin/post-new.php1,526 ▼323.15 ▲4.83664.76 ▲34.5160.56 ▲10.23
Media Library /wp-admin/upload.php1,392 ▲74.24 ▲0.02100.12 ▼3.2240.83 ▼2.91
FSM Custom Featured Image Caption /wp-admin/options-general.php?page=fsm-custom-featured-image-caption8881.7124.5129.95

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/fsm-custom-featured-image-caption/fsm-custom-featured-image-caption.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fsm-custom-featured-image-caption/theme_compat.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Requires at least: Invalid plugin version format
The official readme.txt might help

fsm-custom-featured-image-caption/fsm-custom-featured-image-caption.php Passed 13 tests

Analyzing the main PHP file in "FSM Custom Featured Image Caption" version 1.24
70 characters long description:
Allows adding custom captions to the featured image of posts and pages

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin836 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP323292600
JavaScript3152108
PO File2304482
JSON10046

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity3.37
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods15.00%
▷ Public methods1785.00%
▷ Protected methods00.00%
▷ Private methods315.00%
Functions17
▷ Named functions1164.71%
▷ Anonymous functions635.29%
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