Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.57MB] [CPU: ▲7.96ms] Passed 4 tests
Analyzing server-side resources used by Interactive Content – H5P
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 42.77 ▲1.69 |
Dashboard /wp-admin | 5.43 ▲2.13 | 60.34 ▲9.46 |
Posts /wp-admin/edit.php | 5.50 ▲2.14 | 62.56 ▲8.34 |
Add New Post /wp-admin/post-new.php | 7.67 ▲1.78 | 113.08 ▲12.33 |
Media Library /wp-admin/upload.php | 5.43 ▲2.20 | 51.17 ▲15.43 |
My Results /wp-admin/admin.php?page=h5p_results | 5.40 | 44.74 |
Add New /wp-admin/admin.php?page=h5p_new | 5.40 | 50.11 |
All H5P Content /wp-admin/admin.php?page=h5p | 5.40 | 43.27 |
H5P /wp-admin/options-general.php?page=h5p_settings | 5.40 | 44.61 |
Libraries /wp-admin/admin.php?page=h5p_libraries | 5.40 | 50.08 |
Server storage [IO: ▲6.84MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 567 new files
Database: 14 new tables, 24 new options
New tables |
---|
wp_h5p_events |
wp_h5p_libraries_hub_cache |
wp_h5p_tmpfiles |
wp_h5p_contents_libraries |
wp_h5p_contents_tags |
wp_h5p_libraries_languages |
wp_h5p_libraries_libraries |
wp_h5p_contents |
wp_h5p_counters |
wp_h5p_results |
... |
New WordPress options |
---|
h5p_export |
h5p_save_content_frequency |
h5p_send_usage_statistics |
can_compress_scripts |
widget_theysaidso_widget |
h5p_track_user |
h5p_check_h5p_requirements |
theysaidso_admin_options |
h5p_multisite_capabilities |
h5p_save_content_state |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Interactive Content – H5P
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲102 | 13.25 ▼1.17 | 1.64 ▼0.47 | 48.40 ▲1.04 |
Dashboard /wp-admin | 2,267 ▲64 | 5.85 ▲0.96 | 107.44 ▲3.43 | 39.21 ▼6.72 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.06 ▲0.08 | 40.46 ▼2.17 | 37.72 ▼0.23 |
Add New Post /wp-admin/post-new.php | 1,564 ▲19 | 23.42 ▲0.37 | 600.79 ▲0.70 | 51.96 ▲6.87 |
Media Library /wp-admin/upload.php | 1,449 ▲49 | 4.24 ▲0.11 | 101.37 ▼22.23 | 42.54 ▼3.78 |
My Results /wp-admin/admin.php?page=h5p_results | 947 | 2.29 | 35.49 | 26.99 |
Add New /wp-admin/admin.php?page=h5p_new | 839 | 2.07 | 28.08 | 25.37 |
All H5P Content /wp-admin/admin.php?page=h5p | 946 | 2.41 | 37.05 | 26.18 |
H5P /wp-admin/options-general.php?page=h5p_settings | 1,308 | 2.40 | 35.77 | 33.99 |
Libraries /wp-admin/admin.php?page=h5p_libraries | 992 | 2.18 | 29.28 | 37.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/h5p/h5p-php-library/embed.php
- 30× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: lang in wp-content/plugins/h5p/h5p-php-library/embed.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/h5p/admin/views/select-content.php:31
- > PHP Notice
Undefined variable: library in wp-content/plugins/h5p/admin/views/library-content-upgrade.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/h5p/admin/views/show-content.php:15
- > PHP Fatal error
Uncaught Error: Interface 'H5PFileStorage' not found in wp-content/plugins/h5p/h5p-php-library/h5p-default-storage.class.php:18
- > PHP Fatal error
Uncaught Error: Class 'H5P_Plugin_Admin' not found in wp-content/plugins/h5p/admin/views/settings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/h5p/admin/views/user-consent.php:15
- > PHP Notice
Undefined variable: scripts in wp-content/plugins/h5p/h5p-php-library/embed.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'H5PEventBase' not found in wp-content/plugins/h5p/public/class-h5p-event.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/h5p/admin/views/libraries.php:14
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: video, slider, quiz, editor, education
h5p/h5p.php Passed 13 tests
The main PHP file in "Interactive Content – H5P" ver. 1.15.6 adds more information about the plugin and also serves as the entry point for this plugin
92 characters long description:
Allows you to upload, create, share and use rich interactive content on your WordPress site.
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 plugin54,956 lines of code in 496 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 298 | 2,201 | 5,797 | 18,313 |
PO File | 16 | 4,581 | 5,839 | 12,026 |
PHP | 37 | 1,779 | 4,857 | 9,648 |
CSS | 83 | 688 | 337 | 5,624 |
Sass | 40 | 812 | 32 | 5,094 |
Markdown | 11 | 1,106 | 0 | 3,714 |
HTML | 2 | 35 | 11 | 249 |
SVG | 5 | 0 | 1 | 196 |
JSON | 3 | 0 | 0 | 85 |
Ruby | 1 | 5 | 12 | 7 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 47.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 172.00 |
Average method complexity | 4.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 6 | 23.08% |
▷ Concrete classes | 20 | 76.92% |
▷ Final classes | 0 | 0.00% |
Methods | 501 | |
▷ Static methods | 63 | 12.57% |
▷ Public methods | 404 | 80.64% |
▷ Protected methods | 8 | 1.60% |
▷ Private methods | 89 | 17.76% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 42 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 42 | 100.00% |
▷ Public constants | 42 | 100.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
32 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
h5p-editor-php-library/images/binary-file.png | 5.87KB | 3.72KB | ▼ 36.66% |
h5p-editor-php-library/ckeditor/skins/bootstrapck/images/hidpi/lock-open.png | 0.56KB | 0.34KB | ▼ 39.62% |
h5p-editor-php-library/ckeditor/skins/bootstrapck/images/hidpi/close.png | 0.49KB | 0.27KB | ▼ 44.58% |
h5p-editor-php-library/images/order.png | 0.45KB | 0.43KB | ▼ 4.31% |
h5p-editor-php-library/images/expand.png | 0.20KB | 0.13KB | ▼ 34.33% |