83% multisite-featured-image

Code Review | Multisite Featured Image

WordPress plugin Multisite Featured Image scored83%from 54 tests.

About plugin

  • Plugin page: multisite-feature...
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 15, 2015
  • Latest release: Apr 26, 2017
  • Number of updates: 27
  • Update frequency: every 20.7 days
  • Top authors: ibenic (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /4,693 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Multisite Featured Image
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0436.91 ▼3.66
Dashboard /wp-admin3.35 ▲0.0044.87 ▼14.70
Posts /wp-admin/edit.php3.40 ▲0.0445.51 ▼4.14
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.51 ▼18.71
Media Library /wp-admin/upload.php3.28 ▲0.0433.82 ▲1.90

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Multisite Featured Image
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.57 ▼0.731.62 ▼0.5539.51 ▼3.90
Dashboard /wp-admin2,206 ▲215.79 ▼0.0695.36 ▼6.0240.62 ▼0.46
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0033.22 ▼7.7134.22 ▼0.95
Add New Post /wp-admin/post-new.php1,514 ▼017.66 ▼0.01653.98 ▼24.0656.69 ▲1.14
Media Library /wp-admin/upload.php1,382 ▼64.17 ▼0.0595.91 ▼14.4441.40 ▼4.32

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/multisite-featured-image/mu-featured-image.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Requires at least: Invalid plugin version format
You can take inspiration from this readme.txt

multisite-featured-image/mu-featured-image.php 85% from 13 tests

This is the main PHP file of "Multisite Featured Image" version 1.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("multisite-featured-image.php" instead of "mu-featured-image.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected292 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1166113256
JavaScript119736

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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