Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.27MB] [CPU: ▼0.46ms] Passed 4 tests
This is a short check of server-side resources used by PostTube Audio/Video Generator - Convert Your Post into Video
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.31 | 42.64 ▲0.54 |
Dashboard /wp-admin | 3.61 ▲0.30 | 53.40 ▲0.47 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 51.89 ▼3.40 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 103.64 ▲1.86 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 39.72 ▲0.55 |
Server storage [IO: ▲13.85MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 1,048 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_tube_log |
wp_tube_config |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
PostTube Audio/Video Generator - Convert Your Post into Video: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.27 ▼1.10 | 4.61 ▲2.93 | 40.48 ▼1.26 |
Dashboard /wp-admin | 2,208 ▲20 | 5.89 ▼0.01 | 102.79 ▲2.96 | 63.16 ▲14.84 |
Posts /wp-admin/edit.php | 2,103 ▲11 | 1.97 ▼0.04 | 34.48 ▼7.86 | 35.01 ▼10.06 |
Add New Post /wp-admin/post-new.php | 1,526 ▲12 | 23.18 ▲5.78 | 789.10 ▲112.82 | 55.27 ▲3.00 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.22 ▲0.02 | 110.51 ▲7.81 | 45.42 ▼1.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 508× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/posttube-video-generator/vendor/google/common-protos/src/Type/Fraction.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google\\Auth\\CredentialsLoader' not found in wp-content/plugins/posttube-video-generator/vendor/google/auth/src/Credentials/ServiceAccountCredentials.php:61
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/posttube-video-generator/vendor/google/common-protos/src/LongRunning/OperationInfo.php:24
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/posttube-video-generator/vendor/google/protobuf/src/Google/Protobuf/Mixin.php:77
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/posttube-video-generator/vendor/google/gax/tests/Tests/Unit/Transport/GrpcFallbackTransportTest.php:53
- > PHP Fatal error
Uncaught Error: Class 'Grpc\\AbstractCall' not found in wp-content/plugins/posttube-video-generator/vendor/grpc/grpc/src/lib/BidiStreamingCall.php:26
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/posttube-video-generator/vendor/google/common-protos/src/Api/Expr/V1alpha1/Expr/Call.php:17
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/posttube-video-generator/vendor/google/common-protos/src/Api/Service.php:36
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/posttube-video-generator/vendor/google/protobuf/src/Google/Protobuf/Internal/GeneratedCodeInfo/Annotation.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/posttube-video-generator/vendor/google/common-protos/src/Cloud/ServiceManagement/V1/GetServiceConfigRequest.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: converter, text-to-speech, audio converter, youtube, video...
posttube-video-generator/PostTube.php 92% from 13 tests
"PostTube Audio/Video Generator - Convert Your Post into Video" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("posttube-video-generator.php" instead of "PostTube.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin150,075 lines of code in 985 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 9,970 | 223 | 76,453 |
PHP | 894 | 11,977 | 56,001 | 53,355 |
SVG | 6 | 2 | 21 | 13,800 |
Markdown | 34 | 1,443 | 0 | 4,425 |
JSON | 24 | 0 | 0 | 1,511 |
XML | 7 | 0 | 5 | 169 |
Bourne Shell | 8 | 43 | 80 | 162 |
YAML | 3 | 6 | 0 | 82 |
Protocol Buffers | 2 | 14 | 38 | 62 |
Python | 1 | 16 | 40 | 47 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 4.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 432.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.00 |
Code structure | ||
---|---|---|
Namespaces | 125 | |
Interfaces | 32 | |
Traits | 18 | |
Classes | 819 | |
▷ Abstract classes | 5 | 0.61% |
▷ Concrete classes | 814 | 99.39% |
▷ Final classes | 21 | 2.58% |
Methods | 4,970 | |
▷ Static methods | 535 | 10.76% |
▷ Public methods | 4,603 | 92.62% |
▷ Protected methods | 46 | 0.93% |
▷ Private methods | 321 | 6.46% |
Functions | 259 | |
▷ Named functions | 102 | 39.38% |
▷ Anonymous functions | 157 | 60.62% |
Constants | 496 | |
▷ Global constants | 11 | 2.22% |
▷ Class constants | 485 | 97.78% |
▷ Public constants | 485 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/img/admin_icon.png | 0.92KB | 0.91KB | ▼ 0.85% |