84% embed-panopto

Code Review | Embed Panopto

WordPress plugin Embed Panopto scored84%from 54 tests.

About plugin

  • Plugin page: embed-panopto
  • Plugin version: 2.2.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 7, 2020
  • Latest release: Feb 7, 2020
  • Number of updates: 3
  • Update frequency: every 6.0 days
  • Top authors: schrauger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /660 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Embed Panopto
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.07 ▼6.61
Dashboard /wp-admin3.32 ▲0.0144.46 ▼5.31
Posts /wp-admin/edit.php3.37 ▲0.0145.34 ▲0.21
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.90 ▼4.70
Media Library /wp-admin/upload.php3.24 ▲0.0142.43 ▲9.14

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

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

Browser metrics Passed 4 tests

Embed Panopto: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.59 ▼0.994.24 ▲2.2139.33 ▼8.61
Dashboard /wp-admin2,206 ▲184.88 ▼0.02102.96 ▼11.8737.84 ▼6.03
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0438.15 ▲2.0431.21 ▼2.01
Add New Post /wp-admin/post-new.php6,350 ▲4,83627.61 ▲10.00986.60 ▲320.5463.41 ▲8.60
Media Library /wp-admin/upload.php1,388 ▼34.16 ▼0.0394.12 ▼1.2342.27 ▲0.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/embed-panopto/embed-panopto.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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
5 plugin tags: gutenberg, block, embed, panopto, video

embed-panopto/embed-panopto.php Passed 13 tests

The primary PHP file in "Embed Panopto" version 2.2.1 is used by WordPress to initiate all plugin functionality
59 characters long description:
WordPress Block for embedding Panopto videos and playlists.

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
Good job! No executable or dangerous file extensions detected221 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11220157
PHP1194156
XML1008

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin