83% inline-video-shortcodes

Code Review | Inline Video Shortcodes

WordPress plugin Inline Video Shortcodes scored83%from 54 tests.

About plugin

  • Plugin page: inline-video-shor...
  • Plugin version: 20171108...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-4.8.3
  • WordPress version: 6.3.1
  • First release: Nov 9, 2017
  • Latest release: Nov 12, 2017
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: brighterlouder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,147 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.01MB] [CPU: ▼2.05ms] Passed 4 tests

Analyzing server-side resources used by Inline Video Shortcodes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.47 ▼3.09
Dashboard /wp-admin3.31 ▲0.0143.67 ▼2.90
Posts /wp-admin/edit.php3.36 ▲0.0148.18 ▼0.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0199.05 ▲5.72
Media Library /wp-admin/upload.php3.23 ▲0.0133.43 ▼1.33

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Inline Video Shortcodes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.40 ▼0.884.30 ▲2.6441.11 ▼3.97
Dashboard /wp-admin2,206 ▲184.84 ▼0.05107.93 ▲4.7643.63 ▲0.13
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0241.32 ▲5.7834.98 ▼0.55
Add New Post /wp-admin/post-new.php1,514 ▼1917.68 ▼5.68667.30 ▼16.5852.72 ▼4.10
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0395.65 ▼20.8743.73 ▼14.96

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/inline-video-shortcodes/inline-video-shortcodes.php:53

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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
8 plugin tags: embed video, muted, media, playsinline, inline...

inline-video-shortcodes/inline-video-shortcodes.php 77% from 13 tests

"Inline Video Shortcodes" version 20171108...'s main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "20171108...")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP162523

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected