Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▼0.63ms] Passed 4 tests
Analyzing server-side resources used by Transcoder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.55 | 43.75 ▲5.46 |
Dashboard /wp-admin | 3.84 ▲0.49 | 50.53 ▼9.17 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 51.38 ▲4.99 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 96.41 ▼3.80 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 43.09 ▲12.98 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Transcoder: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 14.48 ▼0.08 | 1.67 ▼0.01 | 39.19 ▼1.18 |
Dashboard /wp-admin | 2,222 ▲44 | 5.88 ▲0.26 | 79.18 ▼24.84 | 76.88 ▲37.29 |
Posts /wp-admin/edit.php | 2,130 ▲27 | 2.00 ▼0.00 | 37.93 ▼3.21 | 34.63 ▼1.82 |
Add New Post /wp-admin/post-new.php | 1,708 ▲180 | 22.14 ▼1.01 | 669.00 ▲71.26 | 51.88 ▼5.04 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.24 ▲0.06 | 98.04 ▼2.35 | 69.13 ▲24.54 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Trait 'Transcoder\\Inc\\Traits\\Singleton' not found in wp-content/plugins/transcoder/inc/classes/class-filesystem.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/transcoder/rt-transcoder.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function transcoder_filter_input() in wp-content/plugins/transcoder/admin/partials/rt-transcoder-admin-display.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/transcoder/admin/rt-retranscode-admin.php:1017
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/transcoder/admin/rt-transcoder-rest-routes.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/transcoder/admin/rt-transcoder-actions.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/transcoder/admin/rt-transcoder-functions.php:108
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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 reduce the number of tags, currently 15 tag instead of maximum 10
transcoder/rt-transcoder.php 85% from 13 tests
"Transcoder" version 1.3.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("transcoder.php" instead of "rt-transcoder.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin4,214 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 806 | 1,459 | 3,316 |
CSS | 5 | 67 | 58 | 556 |
JavaScript | 10 | 73 | 108 | 342 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 66.43 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 266.00 |
Average method complexity | 6.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 3 | 3.66% |
▷ Public methods | 75 | 91.46% |
▷ Protected methods | 4 | 4.88% |
▷ Private methods | 3 | 3.66% |
Functions | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
admin/images/ui-bg_inset-hard_100_fcfdfd_1x100.png | 0.11KB | 0.09KB | ▼ 15.18% |
admin/images/ui-bg_flat_55_fbec88_40x100.png | 0.21KB | 0.08KB | ▼ 59.15% |
admin/images/ui-bg_glass_75_d0e5f5_1x400.png | 0.12KB | 0.16KB | 0.00% |
admin/images/ui-bg_glass_85_dfeffc_1x400.png | 0.12KB | 0.15KB | 0.00% |