89% bp-profile-activity-wall

Code Review | BP Profile Activity Wall

WordPress plugin BP Profile Activity Wall scored89%from 54 tests.

About plugin

  • Plugin page: bp-profile-activi...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 18, 2019
  • Latest release: Apr 26, 2019
  • Number of updates: 13
  • Update frequency: every 0.6 days
  • Top authors: Venutius (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /2,860 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.66ms] Passed 4 tests

Analyzing server-side resources used by BP Profile Activity Wall
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.70 ▼0.19
Dashboard /wp-admin3.32 ▲0.0151.19 ▼3.15
Posts /wp-admin/edit.php3.37 ▲0.0152.25 ▲3.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.81 ▼11.27
Media Library /wp-admin/upload.php3.24 ▲0.0131.84 ▼4.04

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by BP Profile Activity Wall
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.35 ▲0.001.84 ▼0.1844.35 ▲1.83
Dashboard /wp-admin2,201 ▲245.51 ▼0.0687.15 ▲1.1140.68 ▲0.32
Posts /wp-admin/edit.php2,107 ▲72.00 ▼0.0333.65 ▼0.7734.81 ▲0.57
Add New Post /wp-admin/post-new.php1,532 ▲623.12 ▲2.01676.56 ▼15.4763.53 ▲5.96
Media Library /wp-admin/upload.php1,406 ▲34.19 ▼0.0499.61 ▲1.9345.47 ▲0.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: Please take inspiration from this readme.txt

bp-profile-activity-wall/loader.php 85% from 13 tests

The main PHP file in "BP Profile Activity Wall" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bp-profile-activity-wall.php" instead of "loader.php")
  • Description: The description should be shorter than 140 characters (currently 176 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin514 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP419130514

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code1.06
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin