90% webtv-embed

Code Review | Web.TV Embed

WordPress plugin Web.TV Embed scored90%from 54 tests.

About plugin

  • Plugin page: webtv-embed
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5
  • WordPress version: 6.3.1
  • First release: Feb 8, 2017
  • Latest release: Feb 8, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: webtvdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,611 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Web.TV Embed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0141.10 ▼5.50
Dashboard /wp-admin55.55 ▲52.1610,779,164.92 ▲10,779,097.96
Posts /wp-admin/edit.php3.41 ▲0.0150.81 ▼4.58
Add New Post /wp-admin/post-new.php5.94 ▲0.0185.77 ▼35.97
Media Library /wp-admin/upload.php3.28 ▲0.0141.32 ▲2.97

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Web.TV Embed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.62 ▲0.001.99 ▲0.2744.84 ▲4.04
Dashboard /wp-admin2,195 ▲215.55 ▼0.0691.17 ▼2.5439.47 ▼7.36
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0439.50 ▼0.8935.91 ▲0.20
Add New Post /wp-admin/post-new.php1,526 ▼023.05 ▼0.44677.72 ▼15.2568.42 ▲12.59
Media Library /wp-admin/upload.php1,400 ▼04.11 ▼0.06109.69 ▲2.5348.38 ▲4.54

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: webtv, oembed, embed, video

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

This is the main PHP file of "Web.TV Embed" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
50 characters long description:
Embed videos from Web.TV into your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected16 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP352716

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.60
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected