89% insert-video-with-schemaorg-ivws

Code Review | Insert Video with Schema.org (IVS)

WordPress plugin Insert Video with Schema.org (IVS) scored89%from 54 tests.

About plugin

  • Plugin page: insert-video-with...
  • Plugin version: 3.1.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Dec 29, 2014
  • Latest release: Nov 14, 2018
  • Number of updates: 29
  • Update frequency: every 48.8 days
  • Top authors: artabr (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /4,175 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.25ms] Passed 4 tests

This is a short check of server-side resources used by Insert Video with Schema.org (IVS)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.44 ▼2.75
Dashboard /wp-admin3.33 ▲0.0352.00 ▼0.15
Posts /wp-admin/edit.php3.39 ▲0.0350.35 ▲0.44
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.21 ▼14.55
Media Library /wp-admin/upload.php3.26 ▲0.0337.83 ▲0.47

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Insert Video with Schema.org (IVS)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.39 ▼0.151.71 ▼0.2841.46 ▼0.59
Dashboard /wp-admin2,207 ▲335.62 ▼0.0989.64 ▼10.2138.43 ▼2.86
Posts /wp-admin/edit.php2,115 ▲122.06 ▲0.0135.97 ▼3.0036.50 ▼2.00
Add New Post /wp-admin/post-new.php1,548 ▲2218.89 ▼4.10667.75 ▲5.0166.47 ▲7.70
Media Library /wp-admin/upload.php1,418 ▲154.27 ▲0.0899.31 ▼2.5243.38 ▼4.52

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

insert-video-with-schemaorg-ivws/art-insert-video.php 85% from 13 tests

"Insert Video with Schema.org (IVS)" version 3.1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 180 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("insert-video-with-schemaorg-ivws.php" instead of "art-insert-video.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected633 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PO File27680203
PHP34733177
JavaScript191176
SVG10141
CSS24036

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.19
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin