72% simple-video-info

Code Review | Simple Video Info

WordPress plugin Simple Video Info scored 72% from 54 tests.

About plugin

  • Plugin page: simple-video-info
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.3
  • WordPress version: 6.3.1
  • First release: Aug 27, 2015
  • Latest release: Aug 28, 2015
  • Number of updates: 5
  • Update frequency: every 5.6 days
  • Top authors: jpollock (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 839 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.02MB] [CPU: ▲0.16ms] Passed 4 tests

A check of server-side resources used by Simple Video Info
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.94 ▲2.51
Dashboard /wp-admin3.33 ▲0.0243.48 ▼4.66
Posts /wp-admin/edit.php3.38 ▲0.0246.34 ▲3.74
Add New Post /wp-admin/post-new.php5.93 ▲0.0494.62 ▲1.53
Media Library /wp-admin/upload.php3.25 ▲0.0237.20 ▲1.27
Simple Video Info /wp-admin/options-general.php?page=simple-video-info3.2438.69

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Video Info
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲18113.90 ▼0.399.52 ▲7.8741.95 ▲0.52
Dashboard /wp-admin2,211 ▲205.81 ▲0.9197.97 ▼0.6038.01 ▼6.80
Posts /wp-admin/edit.php2,097 ▲82.01 ▲0.0238.73 ▲1.5935.33 ▲0.08
Add New Post /wp-admin/post-new.php1,521 ▼1317.63 ▼5.56619.84 ▼38.8754.41 ▲2.29
Media Library /wp-admin/upload.php1,396 ▲114.22 ▼0.0292.19 ▼3.1141.35 ▼5.27
Simple Video Info /wp-admin/options-general.php?page=simple-video-info9162.0233.4140.95

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=simple-video-info
    • > Notice in wp-content/plugins/simple-video-info/admin/class-simple-video-info-admin.php+126
    Trying to access array offset on value of type bool

SRP 0% 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 items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/simple-video-info/public/partials/simple-video-info-public-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/simple-video-info/admin/partials/simple-video-info-admin-display.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: video stats, vimeo counter, video, vimeo, video counter...

simple-video-info/simple-video-info.php 92% from 13 tests

"Simple Video Info" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 141 characters long)

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
Good job! No executable or dangerous file extensions detected408 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12136566402
JavaScript24546
CSS2070

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.71
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.25MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png73.31KB32.94KB▼ 55.06%
assets/screenshot-1.png53.78KB20.11KB▼ 62.61%
assets/screenshot-3.png130.88KB47.55KB▼ 63.67%