67% buddypress-media

Code Review | rtMedia for WordPress, BuddyPress and bbPress

WordPress plugin rtMedia for WordPress, BuddyPress and bbPress scored67%from 54 tests.

About plugin

Code review

54 tests

User reviews

150 reviews

Install metrics

10,000+ active /1,195,256 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /6.83 ▲3.3765.05 ▲24.71
Dashboard /wp-admin6.88 ▲3.5781.54 ▲32.03
Posts /wp-admin/edit.php7.00 ▲3.6486.18 ▲37.16
Add New Post /wp-admin/post-new.php9.48 ▲3.59127.45 ▲31.10
Media Library /wp-admin/upload.php6.86 ▲3.6372.62 ▲33.14
Media Size Import /wp-admin/admin.php?page=rtmedia-migration-media-size-import6.8664.95
Premium /wp-admin/admin.php?page=rtmedia-addons6.8668.34
Support /wp-admin/admin.php?page=rtmedia-support7.0967.79
Hire Us /wp-admin/admin.php?page=rtmedia-hire-us6.8663.33
Themes /wp-admin/admin.php?page=rtmedia-themes6.8662.74
Settings /wp-admin/admin.php?page=rtmedia-settings7.2275.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
New WordPress options

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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,304 ▲54214.95 ▲0.6929.54 ▲27.8937.57 ▼7.85
Dashboard /wp-admin2,472 ▲2985.73 ▲0.1799.87 ▼3.6884.32 ▲41.01
Posts /wp-admin/edit.php2,261 ▲1612.34 ▲0.3940.78 ▲1.1636.48 ▲2.66
Add New Post /wp-admin/post-new.php1,664 ▼1622.98 ▲0.86696.16 ▲71.2052.05 ▼4.45
Media Library /wp-admin/upload.php1,554 ▲1544.33 ▲0.18106.83 ▲10.0672.18 ▲29.57
Media Size Import /wp-admin/admin.php?page=rtmedia-migration-media-size-import1,0012.0336.0128.84
Premium /wp-admin/admin.php?page=rtmedia-addons2,6842.1935.9554.96
Support /wp-admin/admin.php?page=rtmedia-support1,7542.1636.7837.57
Hire Us /wp-admin/admin.php?page=rtmedia-hire-us1,1102.0235.7537.42
Themes /wp-admin/admin.php?page=rtmedia-themes1,9912.1339.0242.47
Settings /wp-admin/admin.php?page=rtmedia-settings2,9332.7764.7771.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

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


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
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PO File17949881,836

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 code0.42
Average class complexity59.41
▷ Minimum class complexity1.00
▷ Maximum class complexity607.00
Average method complexity7.21
▷ Minimum method complexity1.00
▷ Maximum method complexity436.00
Code structure
▷ Abstract classes10.64%
▷ Concrete classes15699.36%
▷ Final classes00.00%
▷ Static methods30020.48%
▷ Public methods1,37793.99%
▷ Protected methods392.66%
▷ Private methods493.34%
▷ Named functions25398.06%
▷ Anonymous functions51.94%
▷ Global constants26493.95%
▷ Class constants176.05%
▷ Public constants17100.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
FileSize - originalSize - compressedSavings
app/assets/admin/img/image_thumb.png8.88KB2.83KB▼ 68.11%
app/assets/img/swipe-tooltip.png18.86KB8.49KB▼ 54.99%
app/assets/admin/img/rtmedia-theme-InspireBook.png571.08KB191.50KB▼ 66.47%
app/assets/admin/img/rtmedia-photo-filters.png6.51KB3.40KB▼ 47.74%
app/assets/admin/img/audio_thumb.png8.03KB3.39KB▼ 57.83%