10% videoo-manager

Code Review | Videoo.tv Manager

WordPress plugin Videoo.tv Manager scored10%from 54 tests.

About plugin

  • Plugin page: videoo-manager
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 1, 2023
  • Latest release: Jun 1, 2023
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: digitalgreensl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /123 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/videoo-manager/admin/class-videoo-manager-group-lines.php+377
    Undefined index: action

Server metrics [RAM: ▼0.32MB] [CPU: ▼14.49ms] 75% from 4 tests

Server-side resources used by Videoo.tv Manager
The following require your attention
  • CPU: Total CPU usage must kept under 500.00ms (currently 578.73ms on /wp-admin/admin.php?page=videoo_manager)
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.4044.55 ▼4.70
Dashboard /wp-admin3.70 ▲0.3952.13 ▼0.33
Posts /wp-admin/edit.php3.75 ▲0.3954.66 ▲0.50
Add New Post /wp-admin/post-new.php3.51 ▼2.3841.82 ▼53.41
Media Library /wp-admin/upload.php3.56 ▲0.3241.25 ▲4.54
Videoo Manager /wp-admin/admin.php?page=videoo_manager3.46578.73
Ads.txt management /wp-admin/admin.php?page=videoo_manager_adstxt3.4329.89
VideooTV tag config /wp-admin/admin.php?page=videoo_manager_config3.4332.45

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Videoo.tv Manager: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.25 ▼0.031.71 ▼0.0642.92 ▼1.48
Dashboard /wp-admin2,220 ▲465.69 ▲0.1783.95 ▼17.1877.45 ▲34.36
Posts /wp-admin/edit.php2,131 ▲312.01 ▲0.0137.61 ▲1.3435.16 ▼2.80
Add New Post /wp-admin/post-new.php1,550 ▲2223.52 ▲0.42666.89 ▼39.0262.57 ▲0.01
Media Library /wp-admin/upload.php1,431 ▲314.18 ▼0.03103.17 ▼7.4371.75 ▲24.64
Videoo Manager /wp-admin/admin.php?page=videoo_manager8392.0227.5142.86
Ads.txt management /wp-admin/admin.php?page=videoo_manager_adstxt8981.8229.1836.94
VideooTV tag config /wp-admin/admin.php?page=videoo_manager_config9151.87123.1033.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/videoo-manager/admin/class-videoo-manager-group-lines.php+377
    Undefined index: action
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=videoo_manager
    • > Warning in wp-content/plugins/videoo-manager/includes/class-videoo-manager-services.php+86
    file_get_contents(https://static.videoo.tv/sellers.json): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden

  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=videoo_manager_config
    • > Warning in wp-content/plugins/videoo-manager/admin/class-videoo-manager-admin.php+317
    fileowner(): stat failed for ads.txt

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
Please take a closer look at the following
  • 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/videoo-manager/admin/partials/videoo-manager-admin-config.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/videoo-manager/admin/partials/videoo-manager-form-input-textarea.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Videoo_Manager_Base' not found in wp-content/plugins/videoo-manager/admin/class-videoo-manager-cron.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/videoo-manager/admin/partials/videoo-manager-form-input-text.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Videoo_Manager_Base' not found in wp-content/plugins/videoo-manager/admin/class-videoo-manager-groups.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/videoo-manager/admin/partials/videoo-manager-admin-adstxt.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/videoo-manager/admin/partials/videoo-manager-form-input-radio.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Videoo_Manager_Base' not found in wp-content/plugins/videoo-manager/admin/class-videoo-manager-group-lines.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/videoo-manager/admin/partials/videoo-manager-form-input-groupform.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Videoo_Manager_Base' not found in wp-content/plugins/videoo-manager/admin/class-videoo-manager-admin.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 75% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Contributors: There were no tags found
  • Requires php: Invalid version format
  • Contributors: Plugin contributors not specified
  • Requires at least: Invalid version format
You can look at the official readme.txt

videoo-manager/videoo-manager.php 92% from 13 tests

"Videoo.tv Manager" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,080 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP273551,0111,576
JavaScript39793968
CSS18030418
SVG10079
Markdown120039

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity20.93
▷ Minimum class complexity1.00
▷ Maximum class complexity107.00
Average method complexity3.64
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods111
▷ Static methods21.80%
▷ Public methods8273.87%
▷ Protected methods32.70%
▷ Private methods2623.42%
Functions12
▷ Named functions325.00%
▷ Anonymous functions975.00%
Constants20
▷ Global constants1365.00%
▷ Class constants735.00%
▷ Public constants457.14%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/videootv-icon-neg.png10.86KB1.20KB▼ 88.95%