84% multi-image-metabox

Code Review | Multi Image Metabox

WordPress plugin Multi Image Metabox scored84%from 54 tests.

About plugin

  • Plugin page: multi-image-metabox
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Dec 17, 2012
  • Latest release: Aug 13, 2014
  • Number of updates: 20
  • Update frequency: every 30.4 days
  • Top authors: willybahuaud (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

10,000+ active /18,317 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
Installer ran successfully

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

A check of server-side resources used by Multi Image Metabox
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.36 ▼1.10
Dashboard /wp-admin3.34 ▲0.0450.37 ▼1.11
Posts /wp-admin/edit.php3.39 ▲0.0352.90 ▼0.35
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.97 ▼9.83
Media Library /wp-admin/upload.php3.26 ▲0.0336.56 ▲0.02

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Multi Image Metabox
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2914.74 ▲0.781.71 ▼0.0843.21 ▲0.84
Dashboard /wp-admin2,221 ▲205.88 ▲0.80107.04 ▼0.5640.70 ▼5.80
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0539.80 ▲2.5036.18 ▲1.97
Add New Post /wp-admin/post-new.php1,545 ▲1423.40 ▲0.21685.40 ▲1.0553.58 ▼2.87
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.0798.82 ▼5.7546.63 ▼0.31

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multi-image-metabox/multi-image-metabox.php:41

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (The metabox look like that !) image required
The official readme.txt might help

multi-image-metabox/multi-image-metabox.php Passed 13 tests

"Multi Image Metabox" version 1.3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
Add a multi-image metabox to your posts, pages and custom post types

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin263 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12572214
JavaScript111249

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin