Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.43MB] [CPU: ▲5.43ms] Passed 4 tests
Analyzing server-side resources used by JW Player for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.43 | 46.34 ▲5.36 |
Dashboard /wp-admin | 3.72 ▲0.42 | 50.12 ▲4.52 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 50.98 ▲5.85 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.44 | 110.57 ▲21.43 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 41.47 ▲5.98 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
JW Player for WordPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲184 | 13.86 ▼0.52 | 6.97 ▲4.93 | 37.66 ▼1.19 |
Dashboard /wp-admin | 2,253 ▲65 | 5.12 ▼0.75 | 110.54 ▼1.47 | 39.57 ▲0.78 |
Posts /wp-admin/edit.php | 2,124 ▲32 | 2.43 ▲0.37 | 34.07 ▼3.10 | 31.75 ▼3.97 |
Add New Post /wp-admin/post-new.php | 1,561 ▲28 | 23.36 ▲0.19 | 666.97 ▼0.04 | 37.41 ▼13.30 |
Media Library /wp-admin/upload.php | 1,429 ▲38 | 4.45 ▲0.25 | 100.60 ▼6.06 | 42.74 ▼2.06 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 20× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/jw-player-7-for-wp/admin/jwppp-admin-security.php:28
- > PHP Warning
require(JWPPP_ADMINskin/jwppp-admin-skin-7-options.php): failed to open stream: No such file or directory in wp-content/plugins/jw-player-7-for-wp/admin/skin/jwppp-admin-skin-7.php on line 14
- > PHP Warning
Use of undefined constant JWPPP_ADMIN - assumed 'JWPPP_ADMIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/jw-player-7-for-wp/admin/skin/jwppp-admin-skin-7.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/jw-player-7-for-wp/admin/jwppp-admin-subtitles.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/jw-player-7-for-wp/admin/jwppp-admin-playlist-carousel.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/jw-player-7-for-wp/admin/jwppp-admin-ads.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jw-player-7-for-wp/includes/jwppp-save-single-video-data.php:148
- > PHP Fatal error
require(): Failed opening required 'JWPPP_INCLUDESjwppp-ajax-add-video-callback.php' (include_path='.:/usr/share/php') in wp-content/plugins/jw-player-7-for-wp/includes/jwppp-functions.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jw-player-7-for-wp/jw-widget/jwppp-carousel-config.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function is_dashboard_player() in wp-content/plugins/jw-player-7-for-wp/includes/jwppp-second-video-box.php:9
- > 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 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
- Screenshots: A description for screenshot #14 is required in jw-player-7-for-wp/assets to your readme.txt
jw-player-7-for-wp/jw-player-7-for-wp.php 92% from 13 tests
The main PHP file in "JW Player for WordPress" ver. 2.3.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected4,429 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 785 | 609 | 2,644 |
JavaScript | 12 | 327 | 155 | 1,064 |
CSS | 4 | 121 | 6 | 661 |
SVG | 1 | 0 | 0 | 27 |
HTML | 1 | 0 | 0 | 18 |
JSON | 1 | 0 | 0 | 15 |
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.24 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 47 | |
▷ Named functions | 46 | 97.87% |
▷ Anonymous functions | 1 | 2.13% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
16 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/add-tag.png | 0.49KB | 0.25KB | ▼ 49.40% |
js/tzCheckbox/jquery.tzCheckbox/background.png | 4.96KB | 2.59KB | ▼ 47.82% |
js/tzCheckbox/img/tzine.png | 1.23KB | 0.82KB | ▼ 33.25% |
images/add-video.png | 0.37KB | 0.48KB | 0.00% |
js/tzCheckbox/img/line_bg.png | 0.26KB | 0.23KB | ▼ 9.16% |