78% connatix-video-embed

Code Review | Connatix Video Embed

WordPress plugin Connatix Video Embed scored78%from 54 tests.

About plugin

  • Plugin page: connatix-video-embed
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.9
  • WordPress version: 6.3.1
  • First release: Feb 18, 2022
  • Latest release: Jan 27, 2023
  • Number of updates: 9
  • Update frequency: every 38.1 days
  • Top authors: connatix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,595 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.06MB] [CPU: ▲0.55ms] Passed 4 tests

This is a short check of server-side resources used by Connatix Video Embed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0648.98 ▲7.67
Dashboard /wp-admin3.35 ▲0.0547.59 ▼1.25
Posts /wp-admin/edit.php3.47 ▲0.1156.20 ▲7.59
Add New Post /wp-admin/post-new.php5.96 ▲0.0795.67 ▼4.02
Media Library /wp-admin/upload.php3.28 ▲0.0536.99 ▼0.12

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Connatix Video Embed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,586 ▲82545.01 ▲30.64136.82 ▲134.9742.96 ▼0.61
Dashboard /wp-admin2,440 ▲26331.45 ▲25.80593.68 ▲503.4778.75 ▲38.28
Posts /wp-admin/edit.php2,364 ▲26130.30 ▲28.35424.44 ▲384.3544.34 ▲10.76
Add New Post /wp-admin/post-new.php2,603 ▲1,07736.44 ▲13.471,387.96 ▲735.9856.38 ▲4.02
Media Library /wp-admin/upload.php1,655 ▲25529.50 ▲25.24499.61 ▲398.8656.15 ▲15.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

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)
Good news, no errors were detected

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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/connatix-video-embed/partials/head_script_site.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/connatix-video-embed/connatix-video-embed.php:62
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/connatix-video-embed/partials/edit_user_fields.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_block_type() in wp-content/plugins/connatix-video-embed/blocks/video-embed/video-embed.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/connatix-video-embed/partials/modal.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/connatix-video-embed/partials/head_script_admin.php:9

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: video

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

Analyzing the main PHP file in "Connatix Video Embed" version 1.0.3
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 238 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected31,187 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JSON20030,553
JavaScript716747401
PHP78518200
CSS27033

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions327.27%
▷ Anonymous functions872.73%
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
PNG images were not found in this plugin