84% vidfuse

Code Review | Vidfuse

WordPress plugin Vidfuse scored84%from 54 tests.

About plugin

  • Plugin page: vidfuse
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 2, 2018
  • Latest release: Oct 2, 2018
  • Number of updates: 2
  • Update frequency: every 5.0 days
  • Top authors: jackthoro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /453 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.64MB] [CPU: ▼20.00ms] Passed 4 tests

Server-side resources used by Vidfuse
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.88 ▼5.71
Dashboard /wp-admin3.35 ▼0.0053.26 ▼13.93
Posts /wp-admin/edit.php3.46 ▲0.1049.82 ▼1.55
Add New Post /wp-admin/post-new.php3.23 ▼2.6738.56 ▼57.57
Media Library /wp-admin/upload.php3.27 ▲0.0436.32 ▼2.79
Vidfuse Plugin /wp-admin/options-general.php?page=vidfuse-admin-page3.2432.52

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

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

Browser metrics Passed 4 tests

Vidfuse: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▼0.092.15 ▲0.4044.34 ▲1.19
Dashboard /wp-admin2,199 ▲225.61 ▲0.0391.31 ▲3.4243.83 ▲2.25
Posts /wp-admin/edit.php2,104 ▲12.02 ▼0.0143.87 ▲1.8736.72 ▼1.09
Add New Post /wp-admin/post-new.php1,531 ▲323.17 ▲0.28617.38 ▼55.9059.32 ▲6.60
Media Library /wp-admin/upload.php1,398 ▼24.15 ▼0.0796.60 ▼6.8143.43 ▼3.57
Vidfuse Plugin /wp-admin/options-general.php?page=vidfuse-admin-page7712.0223.0324.74

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/vidfuse/views/settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

vidfuse/vidfuse.php Passed 13 tests

"Vidfuse" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
54 characters long description:
Plugin for video auto-posting from Vidfuse application

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 plugin236 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP84839217
JavaScript10019

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.83
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.69
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin