Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.05MB] [CPU: ▼2.28ms] 75% from 4 tests
An overview of server-side resources used by Brid Video Easy Publish
Please fix the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 909.82ms on /wp-admin/options-general.php?page=brid-video-config-setting)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.50 ▲1.04 | 40.22 ▲4.02 |
Dashboard /wp-admin | 4.37 ▲1.02 | 52.38 ▼5.64 |
Posts /wp-admin/edit.php | 4.46 ▲1.10 | 49.52 ▲3.54 |
Add New Post /wp-admin/post-new.php | 6.97 ▲1.08 | 86.55 ▼11.03 |
Media Library /wp-admin/upload.php | 4.27 ▲1.04 | 41.58 ▲7.54 |
Settings /wp-admin/admin.php?page=brid-video-config | 4.92 | 925.64 |
Video Library /wp-admin/admin.php?page=brid-video-menu | 4.83 | 897.40 |
Brid.tv /wp-admin/options-general.php?page=brid-video-config-setting | 4.92 | 909.82 |
Server storage [IO: ▲2.74MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 358 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
brid_options |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Brid Video Easy Publish: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲88 | 14.51 ▲0.14 | 1.78 ▲0.22 | 38.56 ▼0.13 |
Dashboard /wp-admin | 2,242 ▲64 | 5.56 ▼0.06 | 82.74 ▼19.37 | 65.31 ▲22.40 |
Posts /wp-admin/edit.php | 2,162 ▲62 | 1.99 ▲0.02 | 34.67 ▼4.53 | 32.22 ▼6.21 |
Add New Post /wp-admin/post-new.php | 6,435 ▲4,909 | 26.45 ▲3.06 | 963.74 ▲325.11 | 70.58 ▲14.67 |
Media Library /wp-admin/upload.php | 1,462 ▲62 | 4.07 ▼0.12 | 100.83 ▲6.72 | 66.25 ▲24.97 |
Settings /wp-admin/admin.php?page=brid-video-config | 1,189 | 4.04 | 68.98 | 86.28 |
Video Library /wp-admin/admin.php?page=brid-video-menu | 886 | 2.50 | 23.04 | 25.89 |
Brid.tv /wp-admin/options-general.php?page=brid-video-config-setting | 1,195 | 4.00 | 50.96 | 82.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/brid-video-easy-publish/html/error.php
- > /wp-content/plugins/brid-video-easy-publish/html/form/adBox.php
- > /wp-content/plugins/brid-video-easy-publish/html/adBoxUnit.php
- > /wp-content/plugins/brid-video-easy-publish/html/adBoxBanner.php
- 192× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: adType in wp-content/plugins/brid-video-easy-publish/html/adBoxBanner.php on line 11
- > PHP Warning
require_once(BRID_PLUGIN_DIR/html/video_library.php): failed to open stream: No such file or directory in wp-content/plugins/brid-video-easy-publish/html/library.php on line 16
- > PHP Notice
Undefined variable: adType in wp-content/plugins/brid-video-easy-publish/html/adBoxBanner.php on line 28
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/brid-video-easy-publish/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:8
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/brid-video-easy-publish/html/form/post/carousel.php on line 17
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/brid-video-easy-publish/vendor/guzzlehttp/psr7/src/Stream.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/brid-video-easy-publish/html/form/add_playlist.php:2
- > PHP Fatal error
Uncaught Error: Class 'League\\OAuth2\\Client\\Grant\\AbstractGrant' not found in wp-content/plugins/brid-video-easy-publish/vendor/league/oauth2-client/src/Grant/Password.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/brid-video-easy-publish/vendor/guzzlehttp/psr7/src/AppendStream.php:14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/brid-video-easy-publish/html/form/edit_video.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
brid-video-easy-publish/brid.php 85% from 13 tests
This is the main PHP file of "Brid Video Easy Publish" version 3.7.12, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("brid-video-easy-publish.php" instead of "brid.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 295 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin60,549 lines of code in 269 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 202 | 4,821 | 8,317 | 23,933 |
CSS | 6 | 2,779 | 170 | 17,691 |
JavaScript | 6 | 539 | 636 | 12,558 |
Markdown | 18 | 1,359 | 0 | 3,925 |
JSON | 12 | 1 | 0 | 1,262 |
SVG | 22 | 13 | 20 | 775 |
HTML | 1 | 77 | 45 | 383 |
XML | 1 | 0 | 0 | 19 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 16.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 310.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 30 | |
Traits | 10 | |
Classes | 104 | |
▷ Abstract classes | 2 | 1.92% |
▷ Concrete classes | 102 | 98.08% |
▷ Final classes | 35 | 34.31% |
Methods | 1,093 | |
▷ Static methods | 285 | 26.08% |
▷ Public methods | 835 | 76.40% |
▷ Protected methods | 110 | 10.06% |
▷ Private methods | 148 | 13.54% |
Functions | 130 | |
▷ Named functions | 32 | 24.62% |
▷ Anonymous functions | 98 | 75.38% |
Constants | 89 | |
▷ Global constants | 16 | 17.98% |
▷ Class constants | 73 | 82.02% |
▷ Public constants | 62 | 84.93% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
65 PNG files occupy 0.18MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/option_selected.png | 1.22KB | 0.23KB | ▼ 80.83% |
img/x.png | 1.92KB | 0.82KB | ▼ 57.16% |
img/buttons_small.png | 2.10KB | 1.26KB | ▼ 40.21% |
img/arrow_down_wide.png | 1.11KB | 0.26KB | ▼ 76.50% |
css/images/ui-icons_ffd27a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |