78% xml-sitemap-generator-for-videos

Code Review | Video SEO, Youtube SEO Sitemap

WordPress plugin Video SEO, Youtube SEO Sitemap scored78%from 54 tests.

About plugin

  • Plugin page: xml-sitemap-gener...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-4.9.7
  • WordPress version: 6.3.1
  • First release: Jul 27, 2018
  • Latest release: Aug 14, 2018
  • Number of updates: 5
  • Update frequency: every 3.8 days
  • Top authors: hdwplayer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,409 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.71ms] Passed 4 tests

This is a short check of server-side resources used by Video SEO, Youtube SEO Sitemap
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0740.70 ▼0.42
Dashboard /wp-admin3.38 ▲0.0745.53 ▼2.28
Posts /wp-admin/edit.php3.43 ▲0.0746.43 ▼4.73
Add New Post /wp-admin/post-new.php5.96 ▲0.0794.71 ▲0.60
Media Library /wp-admin/upload.php3.30 ▲0.0736.46 ▲0.91
WP Video Sitemap /wp-admin/tools.php?page=pvsg-video-sitemap-generate-page3.2430.74

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Video SEO, Youtube SEO Sitemap
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7214.74 ▲0.362.20 ▼0.2244.55 ▼3.65
Dashboard /wp-admin2,207 ▲165.83 ▼0.0797.22 ▼4.8439.64 ▼5.06
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0041.10 ▼5.3835.02 ▼3.32
Add New Post /wp-admin/post-new.php1,536 ▼623.23 ▲4.98664.27 ▲57.5865.90 ▲4.95
Media Library /wp-admin/upload.php1,386 ▼24.17 ▼0.0499.89 ▼2.9644.16 ▲0.73
WP Video Sitemap /wp-admin/tools.php?page=pvsg-video-sitemap-generate-page9462.0523.5846.27

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/tools.php?page=pvsg-video-sitemap-generate-page
    • > Warning in wp-content/plugins/xml-sitemap-generator-for-videos/video-sitemap-generator.php+54
    session_start(): Cannot start session when headers already sent
    • > GET request to /wp-admin/tools.php?page=pvsg-video-sitemap-generate-page
    • > Notice in wp-content/plugins/xml-sitemap-generator-for-videos/video-sitemap-generator.php+56
    Undefined index: submit
    • > GET request to /wp-admin/tools.php?page=pvsg-video-sitemap-generate-page
    • > Notice in wp-content/plugins/xml-sitemap-generator-for-videos/video-sitemap-generator.php+62
    Undefined index: update

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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xml-sitemap-generator-for-videos/video-sitemap-generator.php:11

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, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Click the button to generate your video sitemap.), #2 (This is how the XML sitemap should look like in your web browser.)
You can take inspiration from this readme.txt

xml-sitemap-generator-for-videos/video-sitemap-generator.php 85% from 13 tests

The main PHP file in "Video SEO, Youtube SEO Sitemap" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("xml-sitemap-generator-for-videos.php" instead of "video-sitemap-generator.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 190 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected459 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP17026391
XSLT14068

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.51
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.28MB with 0.16MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png45.53KB26.85KB▼ 41.02%
screenshot-2.png245.41KB76.22KB▼ 68.94%