78% complex-tv-embed

Code Review | Complex TV Embed

WordPress plugin Complex TV Embed scored 78% from 54 tests.

About plugin

  • Plugin page: complex-tv-embed
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2
  • WordPress version: 6.3.1
  • First release: Apr 23, 2014
  • Latest release: May 13, 2015
  • Number of updates: 10
  • Update frequency: every 110.7 days
  • Top authors: complex_ntrsctn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,091 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
Installer ran successfully

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

Analyzing server-side resources used by Complex TV Embed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.60 ▼5.94
Dashboard /wp-admin3.32 ▲0.0145.30 ▼8.48
Posts /wp-admin/edit.php3.37 ▲0.0151.15 ▲7.27
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.27 ▼3.45
Media Library /wp-admin/upload.php3.24 ▲0.0130.56 ▼2.80
Complex TV Embed /wp-admin/options-general.php?page=complextv_embed3.1827.88

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Complex TV Embed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.22 ▼1.161.68 ▼0.3742.82 ▼1.33
Dashboard /wp-admin2,210 ▲254.84 ▼0.0498.64 ▼24.2139.24 ▼10.86
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0139.67 ▼0.5034.83 ▼0.02
Add New Post /wp-admin/post-new.php1,537 ▲2323.31 ▲5.73670.82 ▲29.6347.31 ▲3.31
Media Library /wp-admin/upload.php1,389 ▼24.22 ▲0.0397.32 ▼4.0042.86 ▼0.25
Complex TV Embed /wp-admin/options-general.php?page=complextv_embed8202.0323.9825.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=complextv_embed
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=complextv_embed
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=complextv_embed
    • > Notice in wp-content/plugins/complex-tv-embed/complex-tv-embed.php+163
    Trying to access array offset on value of type bool

SRP 50% 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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/complex-tv-embed/complex-tv-embed.php:13

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: ""
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === complex-tv-embed === )
  • Screenshots: Screenshot #1 (The Settings page to fill in after activating the plugin, which can be found in `Setting > ComplexTV Embed`) image missing
Please take inspiration from this readme.txt

complex-tv-embed/complex-tv-embed.php Passed 13 tests

"Complex TV Embed" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
57 characters long description:
WP plugin to help publishers embed video from Complex TV.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin145 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14215145

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected