89% videographywp

Code Review | WordPress Featured Video - VideographyWP

WordPress plugin WordPress Featured Video - VideographyWP scored89%from 54 tests.

About plugin

  • Plugin page: videographywp
  • Plugin version: 1.0.15
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 19, 2016
  • Latest release: Oct 4, 2023
  • Number of updates: 61
  • Update frequency: every 44.7 days
  • Top authors: codeflavors (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

2,000+ active /43,382 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.36MB] [CPU: ▼5.72ms] Passed 4 tests

An overview of server-side resources used by WordPress Featured Video - VideographyWP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2140.40 ▼0.54
Dashboard /wp-admin3.74 ▲0.4048.93 ▼12.11
Posts /wp-admin/edit.php3.79 ▲0.4450.82 ▲1.11
Add New Post /wp-admin/post-new.php6.30 ▲0.4285.71 ▼11.34
Media Library /wp-admin/upload.php3.64 ▲0.4141.91 ▲6.78
VideographyWP Lite /wp-admin/options-general.php?page=cvwp-settings3.6735.47
About VideographyWP /wp-admin/admin.php?page=cvwp-about3.6337.30

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 8 new options
New WordPress options
cvwp_plugin_options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
cvwp_plugin_review_callout
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

WordPress Featured Video - VideographyWP: 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 ▲4714.07 ▼0.341.52 ▼0.1237.89 ▼5.37
Dashboard /wp-admin2,202 ▲225.64 ▲0.0480.26 ▼2.5841.53 ▲3.22
Posts /wp-admin/edit.php2,108 ▲82.01 ▼0.0133.95 ▼4.9731.56 ▼2.55
Add New Post /wp-admin/post-new.php6,355 ▲4,82725.98 ▲3.00860.53 ▲166.8560.95 ▲5.16
Media Library /wp-admin/upload.php1,407 ▲44.17 ▼0.0296.32 ▼4.2739.90 ▼5.32
VideographyWP Lite /wp-admin/options-general.php?page=cvwp-settings1,2852.1940.3137.09
About VideographyWP /wp-admin/admin.php?page=cvwp-about9102.1522.1739.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 8 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • cvwp_plugin_options
    • widget_recent-posts
    • cvwp_plugin_review_callout

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: video plugin, video, featured video, youtube, vimeo

videographywp/index.php 85% from 13 tests

Analyzing the main PHP file in "WordPress Featured Video - VideographyWP" version 1.0.15
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("videographywp.php" instead of "index.php")
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,278 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP185491,4143,023
JavaScript7165891,004
CSS52610251

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity12.88
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes318.75%
▷ Concrete classes1381.25%
▷ Final classes00.00%
Methods97
▷ Static methods1212.37%
▷ Public methods6870.10%
▷ Protected methods1414.43%
▷ Private methods1515.46%
Functions51
▷ Named functions51100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.80MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/back-end/images/promo/post-types.png22.18KB10.72KB▼ 51.68%
assets/back-end/images/promo/logo2.png6.53KB3.53KB▼ 45.93%
assets/libs/jquery-modal/close.png1.87KB1.74KB▼ 6.60%
assets/back-end/images/promo/video-import.png752.01KB260.19KB▼ 65.40%
assets/back-end/images/promo/post-embed.png30.13KB15.53KB▼ 48.47%