83% vimeo-everywhere

Code Review | Vimeo Everywhere

WordPress plugin Vimeo Everywhere scored83%from 54 tests.

About plugin

  • Plugin page: vimeo-everywhere
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Aug 15, 2012
  • Latest release: Dec 16, 2016
  • Number of updates: 10
  • Update frequency: every 158.5 days
  • Top authors: mgyura (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /7,803 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.00ms] Passed 4 tests

A check of server-side resources used by Vimeo Everywhere
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.51 ▼3.67
Dashboard /wp-admin3.33 ▼0.0241.25 ▼19.87
Posts /wp-admin/edit.php3.38 ▲0.0247.84 ▲3.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0278.49 ▼15.95
Media Library /wp-admin/upload.php3.25 ▲0.0237.35 ▲3.78
Vimeo Videos /wp-admin/upload.php?page=vimeovideos-display3.2226.55
Vimeo Everywhere /wp-admin/options-general.php?page=vimeovideos-settings3.2230.83

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_pyd_vimeo_videos_widget
widget_theysaidso_widget
pyd_vimeo_videos
db_upgraded

Browser metrics Passed 4 tests

Vimeo Everywhere: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7413.18 ▼1.201.58 ▲0.0538.13 ▼1.53
Dashboard /wp-admin2,224 ▲354.86 ▼0.08112.39 ▼7.6342.66 ▼4.91
Posts /wp-admin/edit.php2,114 ▲282.07 ▲0.0540.82 ▲5.2236.14 ▲1.70
Add New Post /wp-admin/post-new.php1,532 ▲723.19 ▼0.01644.00 ▼37.2855.92 ▼2.42
Media Library /wp-admin/upload.php1,414 ▲234.26 ▲0.04115.20 ▲12.2647.42 ▲0.07
Vimeo Videos /wp-admin/upload.php?page=vimeovideos-display7752.0424.0221.69
Vimeo Everywhere /wp-admin/options-general.php?page=vimeovideos-settings9532.1726.8925.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_pyd_vimeo_videos_widget
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/vimeo-everywhere/includes/pyd-shortcode.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vimeo-everywhere/includes/pyd-widgets.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/vimeo-everywhere/includes/pyd-shortcode.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vimeo-everywhere/includes/pyd-admin_videos.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vimeo-everywhere/includes/pyd-settings.php:174

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: vimeo shortcode, vimeo, video dashboard, vimeo sidebar, vimeo display...

vimeo-everywhere/pyd-vimeo_everywhere.php 85% from 13 tests

The primary PHP file in "Vimeo Everywhere" version 2.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vimeo-everywhere.php" instead of "pyd-vimeo_everywhere.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 331 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin895 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP620172799
CSS224696

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 1.92MB with 1.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png328.60KB120.08KB▼ 63.46%
screenshot-1.png119.79KB38.99KB▼ 67.45%
screenshot-2.png331.58KB110.41KB▼ 66.70%
screenshot-7.png502.78KB174.20KB▼ 65.35%
screenshot-6.png42.71KB11.08KB▼ 74.06%