Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.38MB] [CPU: ▼2.16ms] Passed 4 tests
This is a short check of server-side resources used by Authenticate Sponsorware Videos via GitHub
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.38 | 40.32 ▼7.33 |
Dashboard /wp-admin | 3.69 ▲0.38 | 47.40 ▼1.97 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 50.40 ▲3.59 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.44 | 89.90 ▼2.94 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 40.10 ▲8.90 |
Settings /wp-admin/admin.php?page=githubauthvideo_settings | 3.51 | 35.33 |
All Github Sponsor Videos /wp-admin/edit.php?post_type=github-sponsor-video | 3.68 | 44.05 |
Server storage [IO: ▲1.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 126 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Authenticate Sponsorware Videos via GitHub: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲96 | 13.24 ▼1.13 | 7.57 ▲5.37 | 40.34 ▼7.76 |
Dashboard /wp-admin | 2,231 ▲46 | 5.84 ▼0.04 | 103.34 ▼6.85 | 37.20 ▼6.71 |
Posts /wp-admin/edit.php | 2,123 ▲37 | 2.07 ▼0.08 | 38.28 ▲1.75 | 35.98 ▲1.03 |
Add New Post /wp-admin/post-new.php | 6,663 ▲5,121 | 23.42 ▲5.22 | 920.60 ▲301.40 | 58.76 ▲3.27 |
Media Library /wp-admin/upload.php | 1,419 ▲28 | 4.21 ▲0.02 | 98.55 ▼2.49 | 40.76 ▼4.16 |
Settings /wp-admin/admin.php?page=githubauthvideo_settings | 876 | 2.06 | 23.40 | 33.51 |
All Github Sponsor Videos /wp-admin/edit.php?post_type=github-sponsor-video | 1,243 | 3.37 | 55.80 | 25.94 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Please fix the following
- 54× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Lcobucci\\JWT\\Signer\\Key' not found in wp-content/plugins/authenticate-sponsorware-videos-via-github/vendor/lcobucci/jwt/src/Signer/Key/LocalFileReference.php:11
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/authenticate-sponsorware-videos-via-github/vendor/ralouphie/mimey/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/authenticate-sponsorware-videos-via-github/vendor/ralouphie/mimey/tests/bootstrap.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Lcobucci\\JWT\\Claim\\Basic' not found in wp-content/plugins/authenticate-sponsorware-videos-via-github/vendor/lcobucci/jwt/src/Claim/LesserOrEqualsTo.php:21
- > PHP Warning
Class 'Lcobucci\\JWT\\Token' not found in wp-content/plugins/authenticate-sponsorware-videos-via-github/vendor/lcobucci/jwt/compat/class-aliases.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Lcobucci\\JWT\\Signer\\Ecdsa' not found in wp-content/plugins/authenticate-sponsorware-videos-via-github/vendor/lcobucci/jwt/src/Signer/Ecdsa/Sha256.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Lcobucci\\JWT\\Exception' not found in wp-content/plugins/authenticate-sponsorware-videos-via-github/vendor/lcobucci/jwt/src/Encoding/CannotEncodeContent.php:9
- > PHP Fatal error
Uncaught Error: Class 'Lcobucci\\JWT\\Signer\\BaseSigner' not found in wp-content/plugins/authenticate-sponsorware-videos-via-github/vendor/lcobucci/jwt/src/Signer/None.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Lcobucci\\JWT\\Exception' not found in wp-content/plugins/authenticate-sponsorware-videos-via-github/vendor/lcobucci/jwt/src/Signer/Key/FileCouldNotBeRead.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/authenticate-sponsorware-videos-via-github/vendor/ralouphie/mimey/tests/src/MimeTypesTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Lcobucci\\JWT\\Signer\\Hmac' not found in wp-content/plugins/authenticate-sponsorware-videos-via-github/vendor/lcobucci/jwt/src/Signer/Hmac/Sha256.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% 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
5 plugin tags: sponsor, oauth, github, block, video
authenticate-sponsorware-videos-via-github/githubauthvideo.php 77% from 13 tests
The principal PHP file in "Authenticate Sponsorware Videos via GitHub" v. 1.2.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 182 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("authenticate-sponsorware-videos-via-github.php" instead of "githubauthvideo.php")
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
Everything looks great! No dangerous files found in this plugin12,158 lines of code in 115 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 102 | 967 | 2,255 | 11,818 |
JSON | 4 | 0 | 0 | 218 |
Markdown | 1 | 30 | 0 | 76 |
YAML | 2 | 5 | 0 | 23 |
XML | 1 | 4 | 0 | 18 |
JavaScript | 3 | 0 | 1 | 3 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 4.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 11 | |
Traits | 0 | |
Classes | 76 | |
▷ Abstract classes | 5 | 6.58% |
▷ Concrete classes | 71 | 93.42% |
▷ Final classes | 29 | 40.85% |
Methods | 381 | |
▷ Static methods | 62 | 16.27% |
▷ Public methods | 324 | 85.04% |
▷ Protected methods | 8 | 2.10% |
▷ Private methods | 49 | 12.86% |
Functions | 32 | |
▷ Named functions | 26 | 81.25% |
▷ Anonymous functions | 6 | 18.75% |
Constants | 30 | |
▷ Global constants | 3 | 10.00% |
▷ Class constants | 27 | 90.00% |
▷ Public constants | 27 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.80MB with 0.50MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/github-icon.png | 1.53KB | 0.85KB | ▼ 44.56% |
images/blur.png | 226.35KB | 20.22KB | ▼ 91.07% |
images/editor-player.png | 588.56KB | 271.83KB | ▼ 53.81% |