Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/opencast/lib/Api/OCRestAPI.php+18
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.67MB] [CPU: ▼48.63ms] Passed 4 tests
A check of server-side resources used by Opencast Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.31 ▼1.15 | 7.25 ▼27.23 |
Dashboard /wp-admin | 2.33 ▼0.97 | 7.56 ▼41.64 |
Posts /wp-admin/edit.php | 2.33 ▼1.02 | 9.02 ▼37.50 |
Add New Post /wp-admin/post-new.php | 2.33 ▼3.55 | 7.10 ▼88.15 |
Media Library /wp-admin/upload.php | 2.33 ▼0.89 | 8.72 ▼23.45 |
General /wp-admin/admin.php?page=opencast_plugin_options | 2.33 | 8.92 |
Video Manager /wp-admin/admin.php?page=opencast_plugin_manager | 2.33 | 7.43 |
Server storage [IO: ▲5.70MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 772 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
opencast_plugin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Opencast Plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲137 | 13.53 ▼0.85 | 1.93 ▲0.10 | 40.93 ▼0.85 |
Dashboard /wp-admin | 2,253 ▲62 | 5.30 ▲0.21 | 101.11 ▲2.88 | 40.37 ▲2.73 |
Posts /wp-admin/edit.php | 2,136 ▲47 | 2.57 ▲0.57 | 35.03 ▼6.25 | 36.51 ▲1.00 |
Add New Post /wp-admin/post-new.php | 1,559 ▲39 | 23.31 ▲0.08 | 676.86 ▲44.49 | 37.33 ▼20.38 |
Media Library /wp-admin/upload.php | 1,435 ▲47 | 4.57 ▲0.40 | 97.92 ▲0.41 | 40.19 ▼2.67 |
General /wp-admin/admin.php?page=opencast_plugin_options | 1,597 | 2.54 | 45.34 | 32.38 |
Video Manager /wp-admin/admin.php?page=opencast_plugin_manager | 1,042 | 2.20 | 28.64 | 28.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/opencast/lib/Api/OCRestAPI.php+18
Undefined index: apiurl
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- opencast_plugin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=opencast_plugin_manager
- > Notice in wp-content/plugins/opencast/lib/Api/OCRestAPI.php+18
Undefined index: apiurl
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=opencast_plugin_manager
- > Notice in wp-content/plugins/opencast/lib/Api/OCRestAPI.php+19
Undefined index: apiusername
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=opencast_plugin_manager
- > Notice in wp-content/plugins/opencast/lib/Api/OCRestAPI.php+20
Undefined index: apipassword
- > GET request to /wp-admin/admin.php?page=opencast_plugin_manager
- > Notice in wp-content/plugins/opencast/lib/Base/OCVideoManagerController.php+47
Undefined index: seriesid
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 fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/opencast/opencast.php
- 21× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Grav\\Common\\Plugin' not found in wp-content/plugins/opencast/src/vendors/select2/docs/plugins/breadcrumbs/breadcrumbs.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/opencast/lib/Api/OCVideoListTable.php:9
- > PHP Fatal error
Uncaught Error: Class 'Grav\\Common\\Plugin' not found in wp-content/plugins/opencast/src/vendors/select2/docs/plugins/problems/problems.php:8
- > PHP Fatal error
Uncaught Error: Class 'Grav\\Common\\Plugin' not found in wp-content/plugins/opencast/src/vendors/select2/docs/plugins/simplesearch/simplesearch.php:15
- > PHP Fatal error
Uncaught Error: Class 'Grav\\Common\\Plugin' not found in wp-content/plugins/opencast/src/vendors/select2/docs/plugins/error/error.php:11
- > PHP Fatal error
Uncaught Error: Class 'Opencast\\Api\\OAuth\\OAuthDataStore' not found in wp-content/plugins/opencast/lib/Api/OAuth/TrivialOAuthDataStore.php:15
- > PHP Fatal error
Uncaught Error: Class 'Opencast\\Shortcodes\\OCShortcodeController' not found in wp-content/plugins/opencast/lib/Shortcodes/OCSingleEpisode.php:11
- > PHP Fatal error
Uncaught Error: Class 'Grav\\Common\\Plugin' not found in wp-content/plugins/opencast/src/vendors/select2/docs/plugins/highlight/highlight.php:8
- > PHP Fatal error
Uncaught Error: Class 'Opencast\\Api\\OAuth\\OAuthSignatureMethod' not found in wp-content/plugins/opencast/lib/Api/OAuth/OAuthSignatureMethod_PLAINTEXT.php:16
- > PHP Fatal error
Uncaught Error: Class 'Opencast\\Shortcodes\\OCShortcodeController' not found in wp-content/plugins/opencast/lib/Shortcodes/OCStudio.php:10
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: opencast, videos manager
opencast/opencast.php 92% from 13 tests
The primary PHP file in "Opencast Plugin" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected77,519 lines of code in 664 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 243 | 13,497 | 7,773 | 51,329 |
CSS | 95 | 1,362 | 629 | 8,444 |
Sass | 132 | 1,011 | 534 | 4,639 |
Markdown | 63 | 1,555 | 0 | 4,300 |
PHP | 53 | 781 | 995 | 3,999 |
SVG | 7 | 1 | 2 | 2,769 |
YAML | 28 | 55 | 0 | 807 |
Twig | 24 | 56 | 0 | 557 |
HTML | 7 | 65 | 0 | 344 |
JSON | 10 | 0 | 0 | 227 |
XML | 1 | 0 | 0 | 102 |
Bourne Shell | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 15.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 44 | |
▷ Abstract classes | 2 | 4.55% |
▷ Concrete classes | 42 | 95.45% |
▷ Final classes | 1 | 2.38% |
Methods | 254 | |
▷ Static methods | 27 | 10.63% |
▷ Public methods | 187 | 73.62% |
▷ Protected methods | 9 | 3.54% |
▷ Private methods | 58 | 22.83% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
74 PNG files occupy 1.01MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/vendors/select2/docs/pages/images/flags/co.png | 2.53KB | 1.58KB | ▼ 37.60% |
src/vendors/select2/docs/themes/site/images/apple-touch-icon-72x72.png | 1.59KB | 1.49KB | ▼ 6.21% |
src/vendors/select2/docs/pages/images/flags/mt.png | 7.17KB | 3.38KB | ▼ 52.90% |
src/vendors/select2/docs/themes/site/images/android-chrome-72x72.png | 1.50KB | 1.39KB | ▼ 6.98% |
src/vendors/select2/docs/pages/images/flags/ia.png | 6.94KB | 3.21KB | ▼ 53.75% |