84% video-checkmark

Code Review | Video Checkmark

WordPress plugin Video Checkmark scored84%from 54 tests.

About plugin

  • Plugin page: video-checkmark
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Oct 10, 2014
  • Latest release: Oct 12, 2014
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: robbychen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /551 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Video Checkmark
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.96 ▼1.46
Dashboard /wp-admin3.31 ▼0.0344.60 ▼15.51
Posts /wp-admin/edit.php3.36 ▲0.0143.52 ▼3.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.65 ▼18.61
Media Library /wp-admin/upload.php3.23 ▲0.0132.33 ▼4.06

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
  • The plugin illegally modified 1 file (12.00KB) outside of "wp-content/plugins/video-checkmark/" and "wp-content/uploads/"
    • (new file) wp-content/data/video_checkmark.sqlite
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Video Checkmark
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.001.81 ▲0.2041.36 ▲2.96
Dashboard /wp-admin2,209 ▲244.82 ▼1.02102.56 ▲0.9639.86 ▼4.34
Posts /wp-admin/edit.php2,108 ▲192.04 ▼0.0134.38 ▼7.0535.05 ▼0.13
Add New Post /wp-admin/post-new.php1,533 ▲523.12 ▲4.78674.81 ▲65.4449.69 ▼14.65
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0495.23 ▲0.1140.60 ▼2.03

Uninstaller [IO: ▲0.01MB] [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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please fix the following
  • 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/video-checkmark/video-checkmark.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (#) image missing
You can look at the official readme.txt

video-checkmark/video-checkmark.php Passed 13 tests

The main PHP script in "Video Checkmark" version 1.0 is automatically included on every request by WordPress
87 characters long description:
Adds a new "Video" column to the posts table for easier track which posts contain video

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
Everything looks great! No dangerous files found in this plugin141 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP32223124
JavaScript21012
CSS1005

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.00
▷ Minimum class complexity7.00
▷ Maximum class complexity11.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin