84% mfi-reloaded

Code Review | Multiple Featured Images: Reloaded

WordPress plugin Multiple Featured Images: Reloaded scored84%from 54 tests.

About plugin

  • Plugin page: mfi-reloaded
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.6
  • WordPress version: 6.3.1
  • First release: Mar 18, 2014
  • Latest release: Mar 18, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: nickohrn (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50+ active /1,259 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
This plugin's installer ran successfully

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

A check of server-side resources used by Multiple Featured Images: Reloaded
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.66 ▼8.52
Dashboard /wp-admin3.34 ▲0.0345.22 ▼4.90
Posts /wp-admin/edit.php3.39 ▲0.0349.32 ▲0.35
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.84 ▼4.68
Media Library /wp-admin/upload.php3.26 ▲0.0336.85 ▲2.82

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Multiple Featured Images: Reloaded
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.64 ▼0.754.09 ▲2.2740.78 ▼3.04
Dashboard /wp-admin2,206 ▲184.84 ▼0.06104.66 ▼4.4639.81 ▼4.56
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0439.50 ▼0.0734.20 ▲0.87
Add New Post /wp-admin/post-new.php1,518 ▲417.71 ▼0.01689.79 ▲11.0153.83 ▼11.27
Media Library /wp-admin/upload.php1,391 ▲34.32 ▲0.0897.25 ▲0.0241.47 ▼1.64

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mfi-reloaded/mfi-reloaded.php:24
    • > PHP Notice
      Undefined variable: image_id in wp-content/plugins/mfi-reloaded/views/meta-boxes/image-picker.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/mfi-reloaded/views/meta-boxes/image-picker.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: images, admin

mfi-reloaded/mfi-reloaded.php Passed 13 tests

The primary PHP file in "Multiple Featured Images: Reloaded" version 1.0.0 is used by WordPress to initiate all plugin functionality
71 characters long description:
Allows developers to quickly add new image pickers to any content type.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected219 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP35470145
JavaScript1211670
CSS1004

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods13100.00%
▷ Public methods753.85%
▷ Protected methods00.00%
▷ Private methods646.15%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ 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
There were not PNG files found in your plugin