90% bp-add-post-updates-to-activity

Code Review | BP Add Post Updates to Activity

WordPress plugin BP Add Post Updates to Activity scored90%from 54 tests.

About plugin

  • Plugin page: bp-add-post-updat...
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6
  • WordPress version: 6.3.1
  • First release: Jan 30, 2018
  • Latest release: Feb 10, 2021
  • Number of updates: 90
  • Update frequency: every 12.3 days
  • Top authors: Venutius (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /2,191 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.50ms] Passed 4 tests

A check of server-side resources used by BP Add Post Updates to Activity
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0444.01 ▲2.80
Dashboard /wp-admin3.36 ▲0.0655.46 ▲5.12
Posts /wp-admin/edit.php3.41 ▲0.0551.91 ▼2.46
Add New Post /wp-admin/post-new.php5.94 ▲0.0587.04 ▼14.79
Media Library /wp-admin/upload.php3.28 ▲0.0538.06 ▲0.46
bp-add-post-updates-to-activity /wp-admin/options-general.php?page=bpapu3.2535.26

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
bpapu_post_types
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

BP Add Post Updates to Activity: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.74 ▲0.392.06 ▲0.1043.76 ▼3.28
Dashboard /wp-admin2,193 ▲235.55 ▼0.1284.47 ▼21.1140.86 ▼0.53
Posts /wp-admin/edit.php2,104 ▲12.00 ▲0.0634.33 ▼3.5732.13 ▼5.46
Add New Post /wp-admin/post-new.php1,529 ▲123.65 ▲0.53694.67 ▼54.5752.35 ▼5.82
Media Library /wp-admin/upload.php1,401 ▲14.13 ▼0.02105.34 ▼11.9244.29 ▼4.70
bp-add-post-updates-to-activity /wp-admin/options-general.php?page=bpapu8802.0023.7528.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: "paypal.me/GeorgeChaplin"
You can take inspiration from this readme.txt

bp-add-post-updates-to-activity/bp-add-post-updates-to-activity.php Passed 13 tests

The main file in "BP Add Post Updates to Activity" v. 1.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
This plugin adds post updates to the BuddyPress Activity Stream

Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected243 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP518270243

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin