79% simple-easy-youtube-embed-video

Code Review | Simple Easy YouTube Embed Video

WordPress plugin Simple Easy YouTube Embed Video scored79%from 54 tests.

About plugin

  • Plugin page: simple-easy-youtu...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Aug 8, 2017
  • Latest release: Aug 8, 2017
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: ifourkuldeep1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /591 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼7.19ms] Passed 4 tests

A check of server-side resources used by Simple Easy YouTube Embed Video
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.69 ▼4.44
Dashboard /wp-admin3.44 ▲0.1340.45 ▼6.26
Posts /wp-admin/edit.php3.49 ▲0.1347.73 ▼3.44
Add New Post /wp-admin/post-new.php5.95 ▲0.0781.83 ▼14.61
Media Library /wp-admin/upload.php3.30 ▲0.0736.83 ▲0.93

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Easy YouTube Embed Video
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.21 ▼1.141.68 ▼0.1137.75 ▼6.28
Dashboard /wp-admin2,216 ▲254.86 ▼1.03110.68 ▲3.2743.63 ▼0.79
Posts /wp-admin/edit.php2,105 ▲162.05 ▲0.0239.16 ▲5.2435.88 ▲0.60
Add New Post /wp-admin/post-new.php1,546 ▲2723.24 ▲0.43663.37 ▲3.8760.74 ▲6.69
Media Library /wp-admin/upload.php1,407 ▲164.22 ▲0.0494.47 ▼2.9140.29 ▼4.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/simple-easy-youtube-embed-video/public/partials/simple-easy-youtube-embed-video-public-display.php
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: seyev in wp-content/plugins/simple-easy-youtube-embed-video/public/partials/simple-easy-youtube-embed-video-public-display.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/simple-easy-youtube-embed-video/admin/partials/simple-easy-youtube-embed-video-admin-display.php:19
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/simple-easy-youtube-embed-video/public/partials/simple-easy-youtube-embed-video-public-display.php on line 18
    • > PHP Fatal error
      Trait 'Simple_Easy_Youtube_Embed_Video_Config' not found in wp-content/plugins/simple-easy-youtube-embed-video/public/class-simple-easy-youtube-embed-video-public.php on line 23
    • > PHP Fatal error
      Trait 'Simple_Easy_Youtube_Embed_Video_Config' not found in wp-content/plugins/simple-easy-youtube-embed-video/admin/class-simple-easy-youtube-embed-video-admin.php on line 23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: youtube embed video, youtube, youtube embed

simple-easy-youtube-embed-video/simple-easy-youtube-embed-video.php Passed 13 tests

The principal PHP file in "Simple Easy YouTube Embed Video" v. 1.0.0 is loaded by WordPress automatically on each request
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected761 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP13172606508
JavaScript2500253

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.88
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.16
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods44
▷ Static methods24.55%
▷ Public methods3068.18%
▷ Protected methods920.45%
▷ Private methods511.36%
Functions3
▷ Named functions3100.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