89% vimeo

Code Review | Vimeo

WordPress plugin Vimeo scored89%from 54 tests.

About plugin

  • Plugin page: vimeo
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Oct 6, 2021
  • Latest release: Oct 30, 2023
  • Number of updates: 12
  • Update frequency: every 63.2 days
  • Top authors: vimeodev (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

5,000+ active /29,139 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.25MB] [CPU: ▼6.50ms] Passed 4 tests

This is a short check of server-side resources used by Vimeo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2641.78 ▲0.36
Dashboard /wp-admin3.59 ▲0.2446.51 ▼16.40
Posts /wp-admin/edit.php3.64 ▲0.2849.40 ▲3.22
Add New Post /wp-admin/post-new.php6.13 ▲0.2584.68 ▼12.16
Media Library /wp-admin/upload.php3.46 ▲0.2337.31 ▲2.21
Vimeo Settings /wp-admin/options-general.php?page=vimeo_settings3.4335.52

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Vimeo
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲19114.02 ▼0.3317.82 ▲16.0343.06 ▲0.46
Dashboard /wp-admin2,207 ▲365.52 ▼0.1482.06 ▼9.8938.55 ▼0.11
Posts /wp-admin/edit.php2,115 ▲182.06 ▲0.0635.08 ▼1.4029.83 ▼5.47
Add New Post /wp-admin/post-new.php6,213 ▲4,68727.36 ▲4.13957.72 ▲333.8238.32 ▼19.66
Media Library /wp-admin/upload.php1,470 ▲739.63 ▲5.37230.20 ▲130.2539.59 ▼4.11
Vimeo Settings /wp-admin/options-general.php?page=vimeo_settings1,4616.3656.8172.34

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: product video, create, blocks, woocommerce video, vimeo...

vimeo/Core.php 77% from 13 tests

The main PHP file in "Vimeo" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("vimeo.php" instead of "Core.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 171 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,995 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP282033571,221
JavaScript571,582770
CSS2003
JSON1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity7.27
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes16.67%
Methods73
▷ Static methods68.22%
▷ Public methods6183.56%
▷ Protected methods00.00%
▷ Private methods1216.44%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants56
▷ Global constants35.36%
▷ Class constants5394.64%
▷ Public constants53100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
build/images/preview-example.78d08062.png53.80KB24.85KB▼ 53.80%