84% channel-9-embed

Code Review | Channel 9 Embed

WordPress plugin Channel 9 Embed scored84%from 54 tests.

About plugin

  • Plugin page: channel-9-embed
  • Plugin version: 0.7.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8
  • WordPress version: 6.3.1
  • First release: Dec 2, 2012
  • Latest release: Jun 5, 2017
  • Number of updates: 8
  • Update frequency: every 205.7 days
  • Top authors: blobaugh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,447 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.00MB] [CPU: ▼4.43ms] Passed 4 tests

An overview of server-side resources used by Channel 9 Embed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.97 ▼2.80
Dashboard /wp-admin3.31 ▲0.0148.84 ▼4.78
Posts /wp-admin/edit.php3.36 ▲0.0050.29 ▼2.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.74 ▼7.50
Media Library /wp-admin/upload.php3.23 ▲0.0039.31 ▲3.02

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Channel 9 Embed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▲0.441.52 ▼0.5842.07 ▼3.71
Dashboard /wp-admin2,192 ▲125.55 ▼0.0288.07 ▼1.7339.46 ▼3.09
Posts /wp-admin/edit.php2,100 ▼02.03 ▼0.0036.18 ▼1.2735.60 ▲1.74
Add New Post /wp-admin/post-new.php1,535 ▲717.99 ▼4.85634.25 ▼12.4771.94 ▲15.74
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.11101.93 ▲2.6443.43 ▼0.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • 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 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_embed_register_handler() in wp-content/plugins/channel-9-embed/channel9-embed.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: channel9, embeds, embed, microsoft, channel 9...

channel-9-embed/channel9-embed.php 92% from 13 tests

The primary PHP file in "Channel 9 Embed" version 0.7.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("channel-9-embed.php" instead of "channel9-embed.php")

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 detected7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1387

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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