Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.13MB] [CPU: ▼12.89ms] Passed 4 tests
Analyzing server-side resources used by Promo Video Maker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.53 | 39.74 ▼1.47 |
Dashboard /wp-admin | 3.88 ▲0.57 | 49.97 ▲1.70 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 51.15 ▼0.40 |
Add New Post /wp-admin/post-new.php | 3.70 ▼2.20 | 40.73 ▼51.39 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 41.24 ▲6.76 |
Promo /wp-admin/admin.php?page=promo-video-maker-login | 3.69 | 34.87 |
/wp-admin/admin.php?page=promo-video-maker-auth-start | 3.61 | 29.84 |
/wp-admin/admin.php?page=promo-video-maker-login-success | 3.61 | 38.33 |
My Videos /wp-admin/admin.php?page=promo-video-maker-dashboard | 3.64 | 33.01 |
/wp-admin/admin.php?page=promo-video-maker-auth-regenerate-cookie | 3.63 | 37.62 |
Settings /wp-admin/admin.php?page=promo-video-maker-oauth-settings | 3.61 | 32.47 |
/wp-admin/admin.php?page=promo-video-maker-auth-finalize | 3.62 | 28.87 |
/wp-admin/admin.php?page=promo-video-maker-auth-refresh | 3.62 | 30.85 |
Server storage [IO: ▲78.96MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- Filesystem usage must be lower than 25MB (currently using 78.96MB)
Filesystem: 588 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Promo Video Maker
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 13.21 ▼1.53 | 1.80 ▲0.08 | 37.48 ▼1.50 |
Dashboard /wp-admin | 2,232 ▲44 | 5.87 ▲0.95 | 117.79 ▼1.99 | 74.77 ▲30.90 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.00 ▲0.03 | 38.71 ▼2.81 | 36.16 ▼0.64 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 17.88 ▼5.30 | 684.45 ▲15.36 | 81.88 ▲25.67 |
Media Library /wp-admin/upload.php | 1,414 ▲23 | 4.23 ▲0.01 | 98.72 ▲0.64 | 62.98 ▲19.10 |
Promo /wp-admin/admin.php?page=promo-video-maker-login | 687 | 49.39 | 915.99 | 95.58 |
/wp-admin/admin.php?page=promo-video-maker-auth-start | 687 | 49.36 | 896.57 | 40.21 |
/wp-admin/admin.php?page=promo-video-maker-login-success | 687 | 49.33 | 853.87 | 41.29 |
My Videos /wp-admin/admin.php?page=promo-video-maker-dashboard | 687 | 49.39 | 954.12 | 42.49 |
/wp-admin/admin.php?page=promo-video-maker-auth-regenerate-cookie | 687 | 49.42 | 1,055.23 | 43.04 |
Settings /wp-admin/admin.php?page=promo-video-maker-oauth-settings | 8 | 0.44 | 0.25 | 0.19 |
/wp-admin/admin.php?page=promo-video-maker-auth-finalize | 687 | 49.30 | 993.97 | 48.25 |
/wp-admin/admin.php?page=promo-video-maker-auth-refresh | 28 | 0.44 | 0.08 | 3.83 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 18 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=promo-video-maker-auth-finalize
- > Notice in wp-content/plugins/promo-video-maker/includes/rest.php+345
Undefined index: token
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=promo-video-maker-auth-finalize
- > Notice in wp-content/plugins/promo-video-maker/includes/rest.php+345
Undefined index: username
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=promo-video-maker-auth-finalize
- > Notice in wp-content/plugins/promo-video-maker/includes/rest.php+345
Undefined index: expiration
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=promo-video-maker-auth-finalize
- > Notice in wp-content/plugins/promo-video-maker/includes/rest.php+345
Undefined index: hmac
SRP 50% 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
Please fix the following items
- 189× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/promo-video-maker/vendor/twig/twig/src/Node/DeprecatedNode.php:23
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/promo-video-maker/vendor/guzzlehttp/psr7/src/ServerRequest.php:25
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/promo-video-maker/vendor/twig/twig/src/TokenParser/MacroTokenParser.php:27
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/promo-video-maker/vendor/twig/twig/src/Extension/CoreExtension.php:73
- > PHP Fatal error
Uncaught Error: Interface 'Twig\\Loader\\LoaderInterface' not found in wp-content/plugins/promo-video-maker/vendor/twig/twig/src/Loader/ChainLoader.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/promo-video-maker/vendor/twig/twig/src/Extension/OptimizerExtension.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/promo-video-maker/vendor/twig/twig/src/Node/SetNode.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Promo\\JWTStorage\\JWTStorage' not found in wp-content/plugins/promo-video-maker/src/JWTStorage/CookieJWTStorage.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/promo-video-maker/vendor/guzzlehttp/psr7/src/BufferStream.php:15
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/promo-video-maker/vendor/twig/twig/src/TokenParser/DoTokenParser.php:21
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=promo-video-maker-auth-finalize
- > Network (severe)
?rest_route=/promo-video-maker/v1/config/consumer-keys - Failed to load resource: the server responded with a status of 403 (Forbidden)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=promo-video-maker-auth-finalize
- > Javascript (severe) in unknown
/wp-content/plugins/promo-video-maker/app/build/main.bundle.js?ver=1.1.2 1:30161535
- > GET request to /wp-admin/admin.php?page=promo-video-maker-auth-refresh
- > Network (severe)
wp-admin/admin.php?page=promo-video-maker-auth-refresh - Failed to load resource: the server responded with a status of 400 (Bad Request)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
No tags were found
promo-video-maker/promo-video-maker.php Passed 13 tests
The main file in "Promo Video Maker" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
139 characters long description:
#1 video creation platform for businesses and agencies. Built to help users create powerful visual content to promote anything effectively.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected51,820 lines of code in 553 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 331 | 5,146 | 9,955 | 43,008 |
Markdown | 15 | 1,095 | 0 | 3,383 |
reStructuredText | 112 | 2,376 | 2,303 | 2,872 |
JSON | 13 | 0 | 0 | 1,174 |
SVG | 67 | 0 | 52 | 1,167 |
JavaScript | 5 | 7 | 19 | 70 |
Bourne Shell | 1 | 6 | 1 | 43 |
YAML | 1 | 7 | 4 | 39 |
Twig | 3 | 2 | 2 | 28 |
XML | 1 | 0 | 0 | 15 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
CSS | 1 | 0 | 1 | 1 |
HTML | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 11.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 42 | |
Interfaces | 29 | |
Traits | 2 | |
Classes | 259 | |
▷ Abstract classes | 11 | 4.25% |
▷ Concrete classes | 248 | 95.75% |
▷ Final classes | 83 | 33.47% |
Methods | 1,592 | |
▷ Static methods | 212 | 13.32% |
▷ Public methods | 1,335 | 83.86% |
▷ Protected methods | 52 | 3.27% |
▷ Private methods | 205 | 12.88% |
Functions | 344 | |
▷ Named functions | 226 | 65.70% |
▷ Anonymous functions | 118 | 34.30% |
Constants | 240 | |
▷ Global constants | 46 | 19.17% |
▷ Class constants | 194 | 80.83% |
▷ Public constants | 191 | 98.45% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.43MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
app/build/images/settings-collage.png | 109.24KB | 118.11KB | 0.00% |
app/build/promo-js/images/promo-promote-footer/promo-promote-footer.png | 134.10KB | 145.26KB | 0.00% |
app/build/images/mac.png | 197.52KB | 216.20KB | 0.00% |