84% easy-vbox7

Code Review | Easy VBOX7

WordPress plugin Easy VBOX7 scored84%from 54 tests.

About plugin

  • Plugin page: easy-vbox7
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.3
  • WordPress version: 6.3.1
  • First release: Feb 16, 2009
  • Latest release: Sep 13, 2015
  • Number of updates: 34
  • Update frequency: every 70.6 days
  • Top authors: Caspie (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,617 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.05ms] Passed 4 tests

Analyzing server-side resources used by Easy VBOX7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.59 ▼2.39
Dashboard /wp-admin3.34 ▲0.0443.51 ▼5.46
Posts /wp-admin/edit.php3.39 ▲0.0445.74 ▼2.81
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.50 ▲1.75
Media Library /wp-admin/upload.php3.26 ▲0.0432.47 ▼1.52

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_easy-vbox7
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Easy VBOX7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.60 ▼0.814.80 ▲2.0137.33 ▼6.99
Dashboard /wp-admin2,206 ▲185.85 ▲1.00106.26 ▼4.9144.88 ▲0.35
Posts /wp-admin/edit.php2,092 ▲32.12 ▲0.1539.27 ▲1.5333.66 ▼0.16
Add New Post /wp-admin/post-new.php1,534 ▼023.35 ▲0.17612.86 ▼72.2447.38 ▼10.43
Media Library /wp-admin/upload.php1,391 ▲94.16 ▼0.0099.87 ▼0.8141.08 ▼3.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function status_header() in wp-content/plugins/easy-vbox7/uninstall.php:7

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can look at the official readme.txt

easy-vbox7/easy-vbox7.php Passed 13 tests

This is the main PHP file of "Easy VBOX7" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
107 characters long description:
Quick and easy way to insert videos from VBOX7.com right into your WordPress blog posts, pages and sidebar.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected125 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33189125

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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