Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.24MB] [CPU: ▼12.57ms] Passed 4 tests
This is a short check of server-side resources used by Simple Private Video
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 43.33 ▲2.04 |
Dashboard /wp-admin | 3.33 ▲0.03 | 42.79 ▼1.95 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.82 ▼1.58 |
Add New Post /wp-admin/post-new.php | 4.85 ▼1.04 | 53.75 ▼48.35 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.31 ▲1.61 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Private Video
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.22 ▼1.13 | 1.84 ▲0.19 | 38.42 ▼9.48 |
Dashboard /wp-admin | 2,203 ▲15 | 6.01 ▲1.00 | 95.35 ▼5.40 | 39.64 ▼3.16 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.02 ▼0.03 | 39.35 ▼3.28 | 36.02 ▲1.73 |
Add New Post /wp-admin/post-new.php | 6,597 ▲5,063 | 24.27 ▲1.20 | 852.54 ▲248.20 | 63.67 ▲14.16 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.17 ▼0.02 | 96.32 ▼3.32 | 42.84 ▲1.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/simple-private-video/simple-private-video.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/simple-private-video/core/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/simple-private-video/setup/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/simple-private-video/includes/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/simple-private-video/gutenberg/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/simple-private-video/index.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-private-video/gutenberg/views/video_self_hosting.php:1
- > PHP Warning
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 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
simple-private-video/simple-private-video.php Passed 13 tests
This is the main PHP file of "Simple Private Video" version 0.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
132 characters long description:
A video block and a simple and lean way to host your own videos and show them in private mode without external services dependencies
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin976 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 212 | 347 | 557 |
JavaScript | 13 | 37 | 26 | 362 |
Sass | 3 | 11 | 0 | 54 |
CSS | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 7 | 14.89% |
▷ Public methods | 30 | 63.83% |
▷ Protected methods | 1 | 2.13% |
▷ Private methods | 16 | 34.04% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There are no PNG files in this plugin