89% bp-activity-share

Code Review | BP Activity Share

WordPress plugin BP Activity Share scored89%from 54 tests.

About plugin

  • Plugin page: bp-activity-share
  • Plugin version: 1.5.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 24, 2016
  • Latest release: Aug 13, 2017
  • Number of updates: 12
  • Update frequency: every 26.9 days
  • Top authors: sanket.parmar (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

80+ active /7,386 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.00MB] [CPU: ▼3.75ms] Passed 4 tests

Server-side resources used by BP Activity Share
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0050.71 ▲12.64
Dashboard /wp-admin3.31 ▲0.0050.89 ▼1.05
Posts /wp-admin/edit.php3.36 ▲0.0050.10 ▲4.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.23 ▼17.03
Media Library /wp-admin/upload.php3.23 ▲0.0036.71 ▼1.56

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by BP Activity Share
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4914.69 ▲0.301.74 ▼0.0137.15 ▼8.52
Dashboard /wp-admin2,198 ▲215.62 ▲0.0285.36 ▼10.9241.81 ▲0.00
Posts /wp-admin/edit.php2,100 ▲32.01 ▲0.0139.04 ▼0.2637.89 ▼0.27
Add New Post /wp-admin/post-new.php1,535 ▲918.60 ▼4.65640.09 ▼71.3972.87 ▲16.90
Media Library /wp-admin/upload.php1,394 ▼64.22 ▲0.1195.34 ▼21.1743.23 ▼5.81

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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
These attributes need your attention:
  • Requires at least: The plugin version is formatted incorrectly
  • Tested up to: The plugin version is formatted incorrectly
The official readme.txt might help

bp-activity-share/bp-activity-share.php Passed 13 tests

Analyzing the main PHP file in "BP Activity Share" version 1.5.0
97 characters long description:
This plugin shares BuddyPress Activity locally (i.e., in site only like we share Facebook posts).

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
Success! There were no dangerous files found in this plugin744 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8278736619
JavaScript232068
CSS212057

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity14.00
▷ Minimum class complexity1.00
▷ Maximum class complexity41.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods42
▷ Static methods00.00%
▷ Public methods3173.81%
▷ Protected methods00.00%
▷ Private methods1126.19%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected