89% magnifi-widget

Code Review | Magnifi Video Widget

WordPress plugin Magnifi Video Widget scored 89% from 54 tests.

About plugin

  • Plugin page: magnifi-widget
  • Plugin version: 0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Dec 8, 2020
  • Latest release: May 27, 2021
  • Number of updates: 9
  • Update frequency: every 21.2 days
  • Top authors: rgmagnifi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 507 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.18ms] Passed 4 tests

A check of server-side resources used by Magnifi Video Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.90 ▼2.82
Dashboard /wp-admin3.31 ▲0.0143.31 ▼7.25
Posts /wp-admin/edit.php3.36 ▲0.0147.56 ▲2.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.81 ▼10.21
Media Library /wp-admin/upload.php3.23 ▲0.0132.85 ▼0.42

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: 2 new tables, 6 new options
New tables
wp_mgnf_widget
wp_mgnf_preset
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Magnifi Video Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲11013.25 ▼1.122.04 ▲0.3337.30 ▼9.65
Dashboard /wp-admin2,222 ▲374.84 ▼0.03107.78 ▼7.7740.28 ▼5.87
Posts /wp-admin/edit.php2,105 ▲161.99 ▲0.0140.66 ▲6.0055.48 ▲17.65
Add New Post /wp-admin/post-new.php1,546 ▲1123.19 ▲0.22673.56 ▲73.9662.68 ▲11.83
Media Library /wp-admin/upload.php1,401 ▲134.30 ▲0.0799.52 ▲3.6942.77 ▲0.88

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: ""
  • Tags: Too many tags (30 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

magnifi-widget/magnifi-widget.php Passed 13 tests

Analyzing the main PHP file in "Magnifi Video Widget" version 0.1
60 characters long description:
A Customizable Video Plug-in for your Website or Application

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
Success! There were no dangerous files found in this plugin453 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP49346453

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
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%
Functions11
▷ Named functions11100.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
There were not PNG files found in your plugin