10% bp-new-ui

Code Review | BuddyPress - New UI

WordPress plugin BuddyPress - New UI scored10%from 54 tests.

About plugin

  • Plugin page: bp-new-ui
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 8, 2015
  • Latest release: Aug 8, 2015
  • Number of updates: 13
  • Update frequency: every 0.1 days
  • Top authors: daniluk4000 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /5,085 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/bp-new-ui/bp-new-ui.php+33
    Undefined variable: val

Server metrics [RAM: ▼1.93MB] [CPU: ▼52.77ms] Passed 4 tests

A check of server-side resources used by BuddyPress - New UI
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.395.00 ▼41.59
Dashboard /wp-admin2.09 ▼1.267.01 ▼50.98
Posts /wp-admin/edit.php2.09 ▼1.277.12 ▼38.80
Add New Post /wp-admin/post-new.php2.09 ▼3.806.28 ▼79.69
Media Library /wp-admin/upload.php2.09 ▼1.147.00 ▼26.51

Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for BuddyPress - New UI
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3114.48 ▲0.101.66 ▼0.4641.28 ▼1.38
Dashboard /wp-admin2,206 ▲155.85 ▲0.9496.28 ▼4.7338.29 ▼0.48
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0037.35 ▲0.4531.46 ▼2.52
Add New Post /wp-admin/post-new.php1,538 ▲523.02 ▼0.01684.28 ▼6.2161.17 ▲5.56
Media Library /wp-admin/upload.php1,385 ▼04.16 ▼0.05104.96 ▲5.4445.89 ▲0.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/bp-new-ui/bp-new-ui.php+33
    Undefined variable: val
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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 | 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 items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bp-new-ui/inc/online-status/online.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bp-new-ui/inc/online-status/online.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt might help

bp-new-ui/bp-new-ui.php 92% from 13 tests

"BuddyPress - New UI" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected560 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS100381
PHP31527179

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
6 PNG files occupy 1.12MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshots/screenshot-6.png183.05KB86.37KB▼ 52.81%
screenshots/screenshot-3.png197.76KB84.87KB▼ 57.09%
screenshots/screenshot-2.png304.03KB176.82KB▼ 41.84%
screenshots/screenshot-1.png224.60KB100.86KB▼ 55.09%
screenshots/screenshot-4.png161.97KB68.92KB▼ 57.45%