84% google-video-sitemap-feed-with-multisite-support

Code Review | APG Google Video Sitemap Feed

WordPress plugin APG Google Video Sitemap Feed scored84%from 54 tests.

About plugin

  • Plugin page: google-video-site...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-6.2
  • WordPress version: 6.3.1
  • First release: Jul 15, 2013
  • Latest release: Feb 15, 2023
  • Number of updates: 71
  • Update frequency: every 49.3 days
  • Top authors: artprojectgroup (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

800+ active /42,568 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.15MB] [CPU: ▼0.86ms] Passed 4 tests

This is a short check of server-side resources used by APG Google Video Sitemap Feed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1542.65 ▲2.41
Dashboard /wp-admin3.45 ▲0.1550.87 ▲2.51
Posts /wp-admin/edit.php3.56 ▲0.2154.96 ▲1.21
Add New Post /wp-admin/post-new.php6.03 ▲0.1495.60 ▼8.53
Media Library /wp-admin/upload.php3.37 ▲0.1438.69 ▲1.48
Google Video Sitemap Feed /wp-admin/options-general.php?page=xml-sitemap-video3.83496.00

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

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

Browser metrics Passed 4 tests

APG Google Video Sitemap Feed: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.371.61 ▼0.0939.98 ▼4.24
Dashboard /wp-admin2,202 ▲225.65 ▲0.0391.09 ▲0.2640.16 ▼3.48
Posts /wp-admin/edit.php2,104 ▲72.03 ▲0.0145.30 ▲7.7837.30 ▲1.45
Add New Post /wp-admin/post-new.php1,537 ▲918.27 ▼4.77616.02 ▼40.1562.11 ▲3.25
Media Library /wp-admin/upload.php1,407 ▲44.21 ▼0.0296.56 ▼6.2643.60 ▼3.24
Google Video Sitemap Feed /wp-admin/options-general.php?page=xml-sitemap-video9501.9926.2538.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
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 46× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/google-video-sitemap-feed-with-multisite-support/vendor/woocommerce/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_Scheduler_command.php:6
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/google-video-sitemap-feed-with-multisite-support/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/google-video-sitemap-feed-with-multisite-support/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-video-sitemap-feed-with-multisite-support/includes/admin/funciones-apg.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/google-video-sitemap-feed-with-multisite-support/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_DayOfWeekField.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Action_Scheduler\\Migration\\LogMigrator' not found in wp-content/plugins/google-video-sitemap-feed-with-multisite-support/vendor/woocommerce/action-scheduler/classes/migration/DryRun_LogMigrator.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_FinishedAction' not found in wp-content/plugins/google-video-sitemap-feed-with-multisite-support/vendor/woocommerce/action-scheduler/classes/actions/ActionScheduler_CanceledAction.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_LogEntry' not found in wp-content/plugins/google-video-sitemap-feed-with-multisite-support/vendor/woocommerce/action-scheduler/classes/ActionScheduler_NullLogEntry.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'ActionScheduler_Schedule' not found in wp-content/plugins/google-video-sitemap-feed-with-multisite-support/vendor/woocommerce/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/google-video-sitemap-feed-with-multisite-support/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: google video sitemap, youtube, sitemap-videoxml, sitemap, vimeo...

google-video-sitemap-feed-with-multisite-support/apg-xml-sitemap.php 85% from 13 tests

The main PHP file in "APG Google Video Sitemap Feed" ver. 2.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 788 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("google-video-sitemap-feed-with-multisite-support.php" instead of "apg-xml-sitemap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected8,658 lines of code in 107 files:
LanguageFilesBlank linesComment linesLines of code
PHP971,7655,3357,247
CSS21022660
Markdown31180299
SVG200270
PO File12853128
JSON20054

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity11.54
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces4
Interfaces3
Traits0
Classes80
▷ Abstract classes1518.75%
▷ Concrete classes6581.25%
▷ Final classes00.00%
Methods641
▷ Static methods8813.73%
▷ Public methods48074.88%
▷ Protected methods13621.22%
▷ Private methods253.90%
Functions41
▷ Named functions3175.61%
▷ Anonymous functions1024.39%
Constants34
▷ Global constants12.94%
▷ Class constants3397.06%
▷ Public constants33100.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 images were found in this plugin