84% scaleengine-sevu-video-security

Code Review | ScaleEngine Virtual Usher

WordPress plugin ScaleEngine Virtual Usher scored 84% from 54 tests.

About plugin

  • Plugin page: scaleengine-sevu-...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0.3
  • WordPress version: 6.3.1
  • First release: Oct 11, 2013
  • Latest release: Feb 12, 2019
  • Number of updates: 16
  • Update frequency: every 121.9 days
  • Top authors: stefancaunter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,250 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.00ms] Passed 4 tests

Server-side resources used by ScaleEngine Virtual Usher
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.80 ▲1.88
Dashboard /wp-admin3.31 ▲0.0146.29 ▼4.67
Posts /wp-admin/edit.php3.36 ▲0.0148.92 ▲3.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.14 ▼4.80
Media Library /wp-admin/upload.php3.24 ▲0.0133.09 ▼0.39
SEVU /wp-admin/options-general.php?page=sevu3.2031.44

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-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
sevu_api_address
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by ScaleEngine Virtual Usher
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.33 ▼1.211.78 ▼0.2542.01 ▼9.55
Dashboard /wp-admin2,207 ▲194.86 ▼0.02110.22 ▼2.1941.62 ▼6.17
Posts /wp-admin/edit.php2,096 ▲72.04 ▼0.0240.21 ▼1.1735.58 ▼0.33
Add New Post /wp-admin/post-new.php1,537 ▲323.08 ▼0.02637.87 ▼51.3572.25 ▲4.05
Media Library /wp-admin/upload.php1,395 ▲74.19 ▼0.0694.73 ▼21.3642.46 ▼7.23
SEVU /wp-admin/options-general.php?page=sevu8452.0623.4931.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • sevu_api_address

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scaleengine-sevu-video-security/sevu_options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scaleengine-sevu-video-security/scaleengine-sevu-video-security.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: security, sevu, video, scaleengine, virtual usher

scaleengine-sevu-video-security/scaleengine-sevu-video-security.php Passed 13 tests

The principal PHP file in "ScaleEngine Virtual Usher" v. 1.3.0 is loaded by WordPress automatically on each request
62 characters long description:
Embeds video player using the ScaleEngine Virtual Usher system

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
Success! There were no dangerous files found in this plugin172 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33156172

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods266.67%
▷ Protected methods00.00%
▷ Private methods133.33%
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

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