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 gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼4.93ms] Passed 4 tests
An overview of server-side resources used by Wubtitle
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.26 ▼3.55 |
Dashboard /wp-admin | 3.43 ▲0.13 | 52.58 ▲3.76 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.30 ▼6.85 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 89.62 ▼9.56 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 36.26 ▲0.26 |
All transcripts /wp-admin/edit.php?post_type=transcript | 3.40 | 36.57 |
Add new /wp-admin/post-new.php?post_type=transcript | 6.04 | 84.59 |
Server storage [IO: ▲20.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7,544 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Wubtitle
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲111 | 13.34 ▼1.04 | 4.43 ▲2.74 | 42.60 ▲1.18 |
Dashboard /wp-admin | 2,267 ▲67 | 4.86 ▼0.07 | 96.36 ▼9.56 | 38.56 ▼17.43 |
Posts /wp-admin/edit.php | 2,143 ▲40 | 2.01 ▲0.04 | 35.86 ▼8.16 | 33.80 ▼3.11 |
Add New Post /wp-admin/post-new.php | 6,424 ▲4,892 | 28.86 ▲5.64 | 909.90 ▲232.49 | 35.67 ▼9.92 |
Media Library /wp-admin/upload.php | 1,461 ▲64 | 4.87 ▲0.61 | 110.27 ▼5.90 | 44.14 ▼3.66 |
All transcripts /wp-admin/edit.php?post_type=transcript | 1,112 | 1.93 | 30.28 | 30.93 |
Add new /wp-admin/post-new.php?post_type=transcript | 1,503 | 16.91 | 854.43 | 31.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
require(WUBTITLE_DIRincludes/Dashboard/Templates/plans_array.php): failed to open stream: No such file or directory in wp-content/plugins/wubtitle/includes/Dashboard/Templates/downgrade_plan_template.php on line 13
- > PHP Fatal error
require(): Failed opening required 'WUBTITLE_DIRincludes/Dashboard/Templates/plans_array.php' (include_path='.:/usr/share/php') in wp-content/plugins/wubtitle/includes/Dashboard/Templates/upgrade_plan_template.php on line 13
- > PHP Warning
Use of undefined constant WUBTITLE_DIR - assumed 'WUBTITLE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wubtitle/includes/Dashboard/Templates/cancel_template.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wubtitle/includes/Dashboard/Templates/thankyou_page.php:25
- > PHP Warning
Use of undefined constant WUBTITLE_DIR - assumed 'WUBTITLE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wubtitle/includes/Dashboard/Templates/upgrade_plan_template.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_cache_delete() in wp-content/plugins/wubtitle/includes/Dashboard/Templates/update_template.php:17
- > PHP Warning
require(WUBTITLE_DIRincludes/Dashboard/Templates/plans_array.php): failed to open stream: No such file or directory in wp-content/plugins/wubtitle/includes/Dashboard/Templates/upgrade_plan_template.php on line 13
- > PHP Warning
require(WUBTITLE_DIRincludes/Dashboard/Templates/plans_array.php): failed to open stream: No such file or directory in wp-content/plugins/wubtitle/includes/Dashboard/Templates/payment_template.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_cache_delete() in wp-content/plugins/wubtitle/includes/Dashboard/Templates/plans_array.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Wubtitle\\Core\\VideoSource' not found in wp-content/plugins/wubtitle/includes/Core/Sources/Vimeo.php:17
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
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
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
wubtitle/wubtitle.php Passed 13 tests
This is the main PHP file of "Wubtitle" version 1.2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
48 characters long description:
Automatically generates subtitle for your videos
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin271,119 lines of code in 7,213 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4,230 | 30,103 | 52,120 | 196,020 |
TypeScript | 2,828 | 2,170 | 14,823 | 63,779 |
PHP | 56 | 558 | 2,037 | 4,696 |
Markdown | 29 | 1,301 | 0 | 2,329 |
JSON | 38 | 0 | 0 | 1,782 |
CSS | 8 | 270 | 14 | 1,472 |
PO File | 1 | 414 | 565 | 877 |
XML | 6 | 0 | 0 | 84 |
Bourne Shell | 2 | 8 | 0 | 32 |
Nix | 1 | 1 | 0 | 19 |
YAML | 2 | 1 | 2 | 11 |
SVG | 9 | 0 | 0 | 9 |
make | 1 | 4 | 0 | 7 |
HTML | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 211 | |
▷ Static methods | 41 | 19.43% |
▷ Public methods | 190 | 90.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 21 | 9.95% |
Functions | 9 | |
▷ Named functions | 1 | 11.11% |
▷ Anonymous functions | 8 | 88.89% |
Constants | 13 | |
▷ Global constants | 10 | 76.92% |
▷ Class constants | 3 | 23.08% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 3.12MB with 1.99MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/screenshot-2.png | 564.48KB | 218.97KB | ▼ 61.21% |
.wordpress-org/screenshot-3.png | 643.01KB | 221.53KB | ▼ 65.55% |
.wordpress-org/screenshot-4.png | 1,366.69KB | 415.71KB | ▼ 69.58% |
.wordpress-org/screenshot-1.png | 617.05KB | 249.30KB | ▼ 59.60% |