10% autonettv-relay

Code Review | AutoNetTV Relay

WordPress plugin AutoNetTV Relay scored10%from 54 tests.

About plugin

  • Plugin page: autonettv-relay
  • Plugin version: 3.0.12
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.2
  • WordPress version: 6.3.1
  • First release: Jan 5, 2022
  • Latest release: May 12, 2023
  • Number of updates: 25
  • Update frequency: every 20.2 days
  • Top authors: antvmediainc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,073 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/autonettv-relay/includes/autonettv-relay-api-schedule-fields.php+205
    The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence

Server metrics [RAM: ▲0.04MB] [CPU: ▲2.25ms] Passed 4 tests

Analyzing server-side resources used by AutoNetTV Relay
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.59 ▼0.42
Dashboard /wp-admin3.34 ▲0.0447.50 ▲1.86
Posts /wp-admin/edit.php3.39 ▲0.0452.08 ▲4.55
Add New Post /wp-admin/post-new.php5.94 ▲0.0699.99 ▲11.11
Media Library /wp-admin/upload.php3.27 ▲0.0437.39 ▲3.02
Article Sync Schedule /wp-admin/admin.php?page=autonettv-relay-api-schedule-selections3.2632.26
AutoNetTV /wp-admin/admin.php?page=autonettv-relay-api3.2631.94
Settings /wp-admin/admin.php?page=autonettv-relay-api-settings3.2833.82
Category Selections /wp-admin/admin.php?page=autonettv-relay-api-category-selections3.2731.82

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 11 new options
New WordPress options
category_children
db_upgraded
autonettv_relay_api_settings_fields
autonettv_relay_api_settings_schedule_fields
widget_recent-comments
widget_theysaidso_widget
autonettv_relay_api_settings_categories_fields
can_compress_scripts
autonettv_relay_api_categories
widget_recent-posts
...

Browser metrics Passed 4 tests

An overview of browser requirements for AutoNetTV Relay
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,014 ▲27914.74 ▲0.3725.95 ▲24.2637.99 ▼5.66
Dashboard /wp-admin2,240 ▲495.79 ▲0.6895.42 ▼8.1238.42 ▼4.00
Posts /wp-admin/edit.php2,144 ▲551.97 ▼0.0539.54 ▲4.6534.63 ▲0.89
Add New Post /wp-admin/post-new.php1,558 ▲4418.23 ▲0.68593.13 ▼78.8649.05 ▼3.16
Media Library /wp-admin/upload.php1,425 ▲374.18 ▼0.1097.73 ▲1.6943.20 ▲1.24
Article Sync Schedule /wp-admin/admin.php?page=autonettv-relay-api-schedule-selections8742.0622.7228.11
AutoNetTV /wp-admin/admin.php?page=autonettv-relay-api8502.2026.8128.29
Settings /wp-admin/admin.php?page=autonettv-relay-api-settings8402.0626.4230.97
Category Selections /wp-admin/admin.php?page=autonettv-relay-api-category-selections8232.1625.0926.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/autonettv-relay/uninstall.php+44
    Illegal string offset 'url'
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • category_children

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=autonettv-relay-api-category-selections
    • > Warning in wp-content/plugins/autonettv-relay/includes/autonettv-relay-api-category-fields.php+50
    Illegal string offset 'url'
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=autonettv-relay-api-category-selections
    • > Notice in wp-content/plugins/autonettv-relay/includes/autonettv-relay-api-category-fields.php+50
    Uninitialized string offset: 0
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=autonettv-relay-api-category-selections
    • > Warning in wp-content/plugins/autonettv-relay/includes/autonettv-relay-api-category-fields.php+50
    Illegal string offset 'key'
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=autonettv-relay-api-category-selections
    • > Notice in wp-content/plugins/autonettv-relay/includes/autonettv-relay-api-category-fields.php+66
    Undefined property: stdClass::$category_id
    • > GET request to /wp-admin/admin.php?page=autonettv-relay-api-category-selections
    • > Notice in wp-content/plugins/autonettv-relay/includes/autonettv-relay-api-category-fields.php+71
    Undefined property: stdClass::$category_name

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 fix the following
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/autonettv-relay/includes/autonettv-relay-api-footer.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autonettv-relay/includes/autonettv-relay-api-schedule-fields.php:54
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autonettv-relay/includes/autonettv-relay-api-menus.php:65
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/autonettv-relay/templates/admin/settings-page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/autonettv-relay/includes/autonettv-relay-api-categories.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/autonettv-relay/templates/admin/settings-categories-page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/autonettv-relay/templates/admin/settings-schedule-page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autonettv-relay/includes/autonettv-relay-api-settings-fields.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autonettv-relay/includes/autonettv-relay-api-scripts.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autonettv-relay/includes/autonettv-relay-api-category-fields.php:40

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 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
There were no plugin tags found

autonettv-relay/antv-relay-api.php 77% from 13 tests

The principal PHP file in "AutoNetTV Relay" v. 3.0.12 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/antv-relay-api" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("autonettv-relay.php" instead of "antv-relay-api.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin861 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP16238169854
JavaScript1437

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.29
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin