83% video-callout

Code Review | Video Callout

WordPress plugin Video Callout scored 83% from 54 tests.

About plugin

  • Plugin page: video-callout
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 17, 2022
  • Latest release: Jul 13, 2023
  • Number of updates: 17
  • Update frequency: every 16.0 days
  • Top authors: web-engineer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 786 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
Installer ran successfully

Server metrics [RAM: ▲0.38MB] [CPU: ▼1.28ms] Passed 4 tests

Server-side resources used by Video Callout
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3843.20 ▼1.92
Dashboard /wp-admin3.68 ▲0.3847.30 ▲0.31
Posts /wp-admin/edit.php3.78 ▲0.4348.16 ▼3.93
Add New Post /wp-admin/post-new.php6.30 ▲0.41100.97 ▲1.61
Media Library /wp-admin/upload.php3.59 ▲0.3736.70 ▲0.43
Video Callout /wp-admin/options-general.php?page=video-callout3.7043.77

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Video Callout
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲15213.30 ▼1.441.86 ▼0.3940.73 ▼7.23
Dashboard /wp-admin2,287 ▲995.89 ▲1.00113.39 ▼3.2282.72 ▲40.73
Posts /wp-admin/edit.php2,090 ▲42.01 ▼0.0140.52 ▼0.0534.87 ▼2.65
Add New Post /wp-admin/post-new.php1,530 ▼323.17 ▲0.17600.40 ▼40.1649.77 ▼3.51
Media Library /wp-admin/upload.php1,386 ▲14.33 ▲0.1096.46 ▼6.0041.42 ▼0.82
Video Callout /wp-admin/options-general.php?page=video-callout2,1213.0893.9635.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Trait 'WebEngineLimited\\VideoCalloutMeta' not found in wp-content/plugins/video-callout/classes/video-callout-admin.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/video-callout/classes/view/dashboard.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/video-callout/classes/view/meta-box.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WebEngineLimited\\add_action() in wp-content/plugins/video-callout/classes/video-callout.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

video-callout/video-callout.php 85% from 13 tests

The entry point to "Video Callout" version 1.1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Requires PHP: Required version must match the one declared in readme.txt ("7.4" instead of "7.2")
  • Description: Keep the plugin description shorter than 140 characters (currently 193 characters long)

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
No dangerous file extensions were detected39,116 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
JSON61033,715
PHP81524411,533
JavaScript61213521,507
JSX675162777
TypeScript630140742
PO File2234998494
CSS23415301
SVG70047

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity41.67
▷ Minimum class complexity16.00
▷ Maximum class complexity57.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces1
Interfaces0
Traits1
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods52
▷ Static methods713.46%
▷ Public methods4994.23%
▷ Protected methods00.00%
▷ Private methods35.77%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants9
▷ Global constants111.11%
▷ Class constants888.89%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png14.61KB4.61KB▼ 68.45%
assets/screenshot-3.png13.45KB4.10KB▼ 69.50%
assets/image/we-logo-grey-square@2x.png1.20KB0.40KB▼ 66.64%
assets/image/we-logo-sym-grey.png1.98KB1.45KB▼ 26.86%
assets/screenshot-2.png30.54KB10.05KB▼ 67.09%