84% vidy

Code Review | Vidy

WordPress plugin Vidy scored84%from 54 tests.

About plugin

  • Plugin page: vidy
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: May 6, 2020
  • Latest release: May 6, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: vidyteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,290 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼10.51ms] Passed 4 tests

A check of server-side resources used by Vidy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0625.16 ▼15.74
Dashboard /wp-admin3.33 ▲0.0349.93 ▼3.50
Posts /wp-admin/edit.php3.39 ▲0.0348.23 ▼9.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0387.25 ▼13.77
Media Library /wp-admin/upload.php3.26 ▲0.0339.08 ▲4.83
Vidy /wp-admin/options-general.php?page=vidy-settings3.2233.87

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Vidy
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲6513.54 ▼0.862.40 ▲0.1338.15 ▼8.33
Dashboard /wp-admin2,207 ▲195.79 ▲0.89101.45 ▼14.2436.56 ▼6.94
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0037.02 ▼0.5634.77 ▲2.94
Add New Post /wp-admin/post-new.php1,536 ▲2223.17 ▲5.72647.41 ▼26.2355.94 ▼4.65
Media Library /wp-admin/upload.php1,395 ▲164.19 ▼0.03102.45 ▼0.6343.82 ▼3.21
Vidy /wp-admin/options-general.php?page=vidy-settings7892.0425.3825.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/vidy/vidy.php:118

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
There were not plugin tags detected

vidy/vidy.php 92% from 13 tests

The entry point to "Vidy" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 161 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin122 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22719110
Markdown111012

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected