Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲3.54MB] [CPU: ▲30.25ms] Passed 4 tests
Server-side resources used by rtMedia for WordPress, BuddyPress and bbPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.83 ▲3.37 | 65.05 ▲24.71 |
Dashboard /wp-admin | 6.88 ▲3.57 | 81.54 ▲32.03 |
Posts /wp-admin/edit.php | 7.00 ▲3.64 | 86.18 ▲37.16 |
Add New Post /wp-admin/post-new.php | 9.48 ▲3.59 | 127.45 ▲31.10 |
Media Library /wp-admin/upload.php | 6.86 ▲3.63 | 72.62 ▲33.14 |
Media Size Import /wp-admin/admin.php?page=rtmedia-migration-media-size-import | 6.86 | 64.95 |
Premium /wp-admin/admin.php?page=rtmedia-addons | 6.86 | 68.34 |
Support /wp-admin/admin.php?page=rtmedia-support | 7.09 | 67.79 |
Hire Us /wp-admin/admin.php?page=rtmedia-hire-us | 6.86 | 63.33 |
Themes /wp-admin/admin.php?page=rtmedia-themes | 6.86 | 62.74 |
Settings /wp-admin/admin.php?page=rtmedia-settings | 7.22 | 75.48 |
Server storage [IO: ▲7.10MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 350 new files
Database: 5 new tables, 6 new options
New tables |
---|
wp_rt_rtm_activity |
wp_rt_rtm_media |
wp_rt_rtm_api |
wp_rt_rtm_media_interaction |
wp_rt_rtm_media_meta |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
rtMedia for WordPress, BuddyPress and bbPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,304 ▲542 | 14.95 ▲0.69 | 29.54 ▲27.89 | 37.57 ▼7.85 |
Dashboard /wp-admin | 2,472 ▲298 | 5.73 ▲0.17 | 99.87 ▼3.68 | 84.32 ▲41.01 |
Posts /wp-admin/edit.php | 2,261 ▲161 | 2.34 ▲0.39 | 40.78 ▲1.16 | 36.48 ▲2.66 |
Add New Post /wp-admin/post-new.php | 1,664 ▼16 | 22.98 ▲0.86 | 696.16 ▲71.20 | 52.05 ▼4.45 |
Media Library /wp-admin/upload.php | 1,554 ▲154 | 4.33 ▲0.18 | 106.83 ▲10.06 | 72.18 ▲29.57 |
Media Size Import /wp-admin/admin.php?page=rtmedia-migration-media-size-import | 1,001 | 2.03 | 36.01 | 28.84 |
Premium /wp-admin/admin.php?page=rtmedia-addons | 2,684 | 2.19 | 35.95 | 54.96 |
Support /wp-admin/admin.php?page=rtmedia-support | 1,754 | 2.16 | 36.78 | 37.57 |
Hire Us /wp-admin/admin.php?page=rtmedia-hire-us | 1,110 | 2.02 | 35.75 | 37.42 |
Themes /wp-admin/admin.php?page=rtmedia-themes | 1,991 | 2.13 | 39.02 | 42.47 |
Settings /wp-admin/admin.php?page=rtmedia-settings | 2,933 | 2.77 | 64.77 | 71.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 5 tables in the database
- wp_rt_rtm_media
- wp_rt_rtm_api
- wp_rt_rtm_media_meta
- wp_rt_rtm_media_interaction
- wp_rt_rtm_activity
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- is_permalink_reset
- db_upgraded
- can_compress_scripts
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 no errors were found, this is by no means 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 fix the following
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/buddypress-media/app/main/templates/policy-information.php
- > /wp-content/plugins/buddypress-media/app/admin/templates/tmpl-rtm-map-mapping-failure.php
- > /wp-content/plugins/buddypress-media/app/admin/templates/tmpl-rtm-p-tag.php
- > /wp-content/plugins/buddypress-media/app/admin/templates/tmpl-rtm-msg-div.php
- > /wp-content/plugins/buddypress-media/app/helper/templates/themes-content.php
- > /wp-content/plugins/buddypress-media/app/admin/templates/tmpl-rtm-theme-overlay.php
- > /wp-content/plugins/buddypress-media/app/admin/templates/tmpl-rtm-image.php
- 143× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'getID3' not found in wp-content/plugins/buddypress-media/lib/getid3/extension.cache.dbm.php:73
- > PHP Fatal error
Uncaught Error: Class 'getid3_lib' not found in wp-content/plugins/buddypress-media/lib/getid3/module.audio-video.quicktime.php:18
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/buddypress-media/lib/getid3/module.audio.au.php:18
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/buddypress-media/lib/getid3/module.audio.mpc.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/buddypress-media/app/admin/templates/notices/update-template.php:12
- > PHP Fatal error
Uncaught Exception: getid3.php MUST be included before calling getid3_writetags in wp-content/plugins/buddypress-media/lib/getid3/write.php:24
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/buddypress-media/app/helper/templates/themes-content.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/buddypress-media/lib/getid3/module.archive.rar.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-media/app/main/controllers/template/rtmedia-ajax-actions.php:82
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/buddypress-media/lib/getid3/module.graphic.jpg.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Requires at least: Invalid version format
buddypress-media/index.php 85% from 13 tests
This is the main PHP file of "rtMedia for WordPress, BuddyPress and bbPress" version 4.6.16, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("buddypress-media.php" instead of "index.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 165 characters long)
Code Analysis 97% from 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
There were no executable files found in this plugin82,933 lines of code in 290 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 207 | 11,383 | 21,079 | 53,382 |
JavaScript | 28 | 3,796 | 997 | 16,971 |
CSS | 15 | 671 | 102 | 5,950 |
Sass | 33 | 998 | 131 | 4,746 |
PO File | 1 | 794 | 988 | 1,836 |
Markdown | 3 | 9 | 0 | 20 |
XML | 1 | 6 | 0 | 20 |
JSON | 1 | 0 | 0 | 7 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 436)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 59.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 607.00 |
Average method complexity | 7.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 436.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 157 | |
▷ Abstract classes | 1 | 0.64% |
▷ Concrete classes | 156 | 99.36% |
▷ Final classes | 0 | 0.00% |
Methods | 1,465 | |
▷ Static methods | 300 | 20.48% |
▷ Public methods | 1,377 | 93.99% |
▷ Protected methods | 39 | 2.66% |
▷ Private methods | 49 | 3.34% |
Functions | 258 | |
▷ Named functions | 253 | 98.06% |
▷ Anonymous functions | 5 | 1.94% |
Constants | 281 | |
▷ Global constants | 264 | 93.95% |
▷ Class constants | 17 | 6.05% |
▷ Public constants | 17 | 100.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
14 PNG files occupy 1.79MB with 1.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
app/assets/admin/img/image_thumb.png | 8.88KB | 2.83KB | ▼ 68.11% |
app/assets/img/swipe-tooltip.png | 18.86KB | 8.49KB | ▼ 54.99% |
app/assets/admin/img/rtmedia-theme-InspireBook.png | 571.08KB | 191.50KB | ▼ 66.47% |
app/assets/admin/img/rtmedia-photo-filters.png | 6.51KB | 3.40KB | ▼ 47.74% |
app/assets/admin/img/audio_thumb.png | 8.03KB | 3.39KB | ▼ 57.83% |