67% muvi-media-connect

Code Review | Muvi Media Connect

WordPress plugin Muvi Media Connect scored 67% from 54 tests.

About plugin

  • Plugin page: muvi-media-connect
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0
  • WordPress version: 6.3.1
  • First release: Dec 23, 2019
  • Latest release: Aug 14, 2023
  • Number of updates: 68
  • Update frequency: every 19.6 days
  • Top authors: muviplugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,923 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.17MB] [CPU: ▲513.79ms] 75% from 4 tests

An overview of server-side resources used by Muvi Media Connect
Please fix the following
  • Extra CPU: The extra CPU usage must be under 200.00ms (currently 513.79ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /2.80 ▼0.66572.32 ▲528.90
Dashboard /wp-admin2.85 ▼0.46574.03 ▲519.46
Posts /wp-admin/edit.php2.85 ▼0.51576.86 ▲527.33
Add New Post /wp-admin/post-new.php2.85 ▼3.04576.66 ▲479.45
Media Library /wp-admin/upload.php2.85 ▼0.38572.50 ▲537.17

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Muvi Media Connect
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5713.26 ▼1.121.75 ▼0.3041.38 ▼3.52
Dashboard /wp-admin2,231 ▲495.79 ▼0.09105.24 ▼0.6483.83 ▲43.54
Posts /wp-admin/edit.php2,111 ▲221.96 ▼0.0533.65 ▼6.5833.81 ▼0.36
Add New Post /wp-admin/post-new.php1,515 ▲118.89 ▲1.36733.85 ▲37.5156.84 ▲4.86
Media Library /wp-admin/upload.php1,407 ▲164.09 ▼0.1292.10 ▼4.7177.06 ▲32.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/muvi-media-connect/src/init.php+110
    Undefined index: category_list
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/muvi-media-connect/src/setup.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/muvi-media-connect/src/shortcode.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/muvi-media-connect/src/setup.php:569

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

muvi-media-connect/plugin.php 85% from 13 tests

"Muvi Media Connect" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("muvi-media-connect.php" instead of "plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 217 characters long)

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 plugin12,374 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JSON2008,358
Sass315731,589
PHP591801,357
CSS3125506
JavaScript51381454
SVG310293
Markdown18017

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
src/block/loading.png6.17KB6.85KB0.00%