84% adapter-responsive-video

Code Review | Adapter Responsive Video

WordPress plugin Adapter Responsive Video scored84%from 54 tests.

About plugin

  • Plugin page: adapter-responsiv...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.0
  • WordPress version: 6.3.1
  • First release: Sep 24, 2014
  • Latest release: Jun 28, 2022
  • Number of updates: 10
  • Update frequency: every 283.5 days
  • Top authors: ryankienstra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,574 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.34ms] Passed 4 tests

Server-side resources used by Adapter Responsive Video
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.43 ▼0.25
Dashboard /wp-admin3.32 ▼0.0348.93 ▼14.23
Posts /wp-admin/edit.php3.37 ▲0.0147.83 ▼2.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.85 ▼15.17
Media Library /wp-admin/upload.php3.24 ▲0.0137.45 ▼1.51

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_adapter_responsive_video
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Adapter Responsive Video
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.25 ▼0.041.86 ▼0.0143.80 ▼1.17
Dashboard /wp-admin2,221 ▲154.83 ▼1.06109.61 ▲2.7841.81 ▼2.28
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.1433.94 ▼3.4333.81 ▼4.46
Add New Post /wp-admin/post-new.php1,531 ▲523.34 ▲5.74671.96 ▼4.3260.23 ▲10.07
Media Library /wp-admin/upload.php1,394 ▼64.31 ▲0.04100.17 ▼17.9042.27 ▼7.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_adapter_responsive_video

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/adapter-responsive-video/php/class-adapter-responsive-video-widget.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/adapter-responsive-video/php/class-adapter-responsive-video-widget.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: mobile, bootstrap, video, embed, responsive...

adapter-responsive-video/adapter-responsive-video.php 92% from 13 tests

The principal PHP file in "Adapter Responsive Video" v. 1.1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 179 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
There were no executable files found in this plugin3,313 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JSON1003,168
PHP335132124
XML15221

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.50
▷ Minimum class complexity2.00
▷ Maximum class complexity17.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin