79% revo-video

Code Review | Revo Video

WordPress plugin Revo Video scored 79% from 54 tests.

About plugin

  • Plugin page: revo-video
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 29, 2022
  • Latest release: Feb 9, 2023
  • Number of updates: 32
  • Update frequency: every 1.3 days
  • Top authors: borderfreefinancial (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 960 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.23ms] Passed 4 tests

An overview of server-side resources used by Revo Video
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.99 ▲1.55
Dashboard /wp-admin3.32 ▲0.0248.58 ▲1.03
Posts /wp-admin/edit.php3.37 ▲0.0150.93 ▲2.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.99 ▼13.96
Media Library /wp-admin/upload.php3.24 ▲0.0141.33 ▲8.84

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Revo Video
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,290 ▲55519.37 ▲4.7494.17 ▲92.47244.28 ▲197.35
Dashboard /wp-admin2,204 ▲164.94 ▼0.9298.45 ▼6.4975.56 ▲29.89
Posts /wp-admin/edit.php2,108 ▲161.98 ▼0.0335.01 ▼6.8432.57 ▼3.28
Add New Post /wp-admin/post-new.php1,679 ▲16021.71 ▼1.39705.89 ▲49.9957.66 ▲6.34
Media Library /wp-admin/upload.php1,395 ▲104.21 ▲0.0298.01 ▼3.9478.96 ▲32.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/revo-video/templates/error.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'PhpCsFixer\\Finder' not found in wp-content/plugins/revo-video/vendor/curl/curl/.php-cs-fixer.dist.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'RevoVideo\\RevoApiCall' not found in wp-content/plugins/revo-video/templates/admin.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: revo, revo-video, shoppable video

revo-video/revo-video.php Passed 13 tests

The primary PHP file in "Revo Video" version 2.0.0 is used by WordPress to initiate all plugin functionality
54 characters long description:
This plugin helps you connect your store to Revo Video

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
Everything looks great! No dangerous files found in this plugin1,868 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP263808761,499
JSON300128
Markdown2470123
CSS11913118

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity11.71
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods103
▷ Static methods2625.24%
▷ Public methods9289.32%
▷ Protected methods32.91%
▷ Private methods87.77%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants21
▷ Global constants1466.67%
▷ Class constants733.33%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin