84% magyar-video-embed

Code Review | Magyar Video Embed

WordPress plugin Magyar Video Embed scored84%from 54 tests.

About plugin

  • Plugin page: magyar-video-embed
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.3
  • WordPress version: 6.3.1
  • First release: Aug 25, 2015
  • Latest release: Aug 26, 2015
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: djzone (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /7,659 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.21ms] Passed 4 tests

An overview of server-side resources used by Magyar Video Embed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.18 ▼4.05
Dashboard /wp-admin3.34 ▲0.0442.80 ▼8.07
Posts /wp-admin/edit.php3.39 ▲0.0442.97 ▼6.91
Add New Post /wp-admin/post-new.php5.92 ▲0.0479.95 ▼1.80
Media Library /wp-admin/upload.php3.27 ▲0.0433.11 ▲0.33

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Magyar Video Embed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.53 ▼0.824.53 ▲2.8841.20 ▼2.68
Dashboard /wp-admin2,206 ▲185.84 ▼0.0297.49 ▼18.8237.94 ▼6.72
Posts /wp-admin/edit.php2,089 ▼02.17 ▲0.1139.17 ▲0.7637.48 ▲5.19
Add New Post /wp-admin/post-new.php1,533 ▼023.27 ▼0.01665.27 ▼20.1564.50 ▲10.33
Media Library /wp-admin/upload.php1,388 ▼04.41 ▲0.1894.82 ▼18.5241.31 ▼4.95

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magyar-video-embed/magyar-video-embed.php:50

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: hungarian, post, magyar, oembed, video...

magyar-video-embed/magyar-video-embed.php 92% from 13 tests

The main PHP script in "Magyar Video Embed" version 0.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 172 characters long)

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
Success! There were no dangerous files found in this plugin191 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP153106191

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected