83% gazetv

Code Review | GazeTV

WordPress plugin GazeTV scored83%from 54 tests.

About plugin

  • Plugin page: gazetv
  • Plugin version: 4.3.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.6
  • WordPress version: 6.3.1
  • First release: Mar 26, 2021
  • Latest release: Mar 27, 2021
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: gazetvcom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /309 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.68MB] [CPU: ▼19.83ms] Passed 4 tests

An overview of server-side resources used by GazeTV
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.18 ▼4.88
Dashboard /wp-admin3.32 ▲0.0147.52 ▼10.77
Posts /wp-admin/edit.php3.37 ▲0.0151.52 ▼1.66
Add New Post /wp-admin/post-new.php3.13 ▼2.7635.03 ▼61.99
Media Library /wp-admin/upload.php3.24 ▲0.0138.77 ▲1.76
GazeTV /wp-admin/options-general.php?page=GazeTV3.2028.00

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for GazeTV
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.45 ▲0.081.82 ▲0.1047.38 ▲3.22
Dashboard /wp-admin2,207 ▲195.82 ▲0.9495.98 ▼26.8439.48 ▼4.14
Posts /wp-admin/edit.php2,093 ▲12.04 ▲0.0439.99 ▲0.5337.52 ▲1.53
Add New Post /wp-admin/post-new.php1,537 ▲923.21 ▲4.94655.25 ▲10.3857.07 ▼0.29
Media Library /wp-admin/upload.php1,395 ▲74.34 ▲0.1399.44 ▼7.7344.17 ▼1.73
GazeTV /wp-admin/options-general.php?page=GazeTV7952.0325.0426.40

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 detected upon uninstall: 7 options
    • GTVVL_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/gazetv/GazeTV.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: video, entertainment

gazetv/GazeTV.php 69% from 13 tests

The main PHP file in "GazeTV" ver. 4.3.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gazetv.php" instead of "GazeTV.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Domain Path: The domain path should use only dashes and lowercase characters ("")
  • Domain Path: Prefix the domain path with a forward slash character ("/")

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
Success! There were no dangerous files found in this plugin209 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13443209

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions10
▷ Named functions880.00%
▷ Anonymous functions220.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
There are no PNG files in this plugin