90% share-buddypress-activity-pluso

Code Review | Share BuddyPress activity Pluso

WordPress plugin Share BuddyPress activity Pluso scored 90% from 54 tests.

About plugin

  • Plugin page: share-buddypress-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.0
  • WordPress version: 5.8.1
  • First release: May 5, 2018
  • Latest release: Dec 20, 2018
  • Number of updates: 4
  • Update frequency: every 57.3 days
  • Top authors: markomaksym (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 914 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼140.66ms] Passed 4 tests

This is a short check of server-side resources used by Share BuddyPress activity Pluso
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1735.63 ▲14.33
Dashboard /wp-admin3.11 ▲0.0546.56 ▼6.61
Posts /wp-admin/edit.php3.22 ▲0.1149.52 ▲3.32
Add New Post /wp-admin/post-new.php5.47 ▲0.0488.87 ▼558.94
Media Library /wp-admin/upload.php3.05 ▲0.0532.19 ▼0.40
Share Pluso /wp-admin/options-general.php?page=mxsbap_share_pluso3.0327.17

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 28 new files
Database: 1 new table, no new options
New tables
wp_mxsbap_share_table

Browser metrics Passed 4 tests

Share BuddyPress activity Pluso: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,811 ▲23916.21 ▲0.6114.05 ▲5.9255.59 ▲7.24
Dashboard /wp-admin2,974 ▲405.89 ▼0.21144.22 ▼6.39105.22 ▼4.40
Posts /wp-admin/edit.php2,753 ▲142.75 ▲0.0365.48 ▼3.8087.28 ▲1.93
Add New Post /wp-admin/post-new.php1,506 ▼17718.56 ▼0.16393.93 ▲2.72109.89 ▼1.70
Media Library /wp-admin/upload.php1,821 ▲115.06 ▲0.03169.90 ▲25.19117.49 ▲0.77
Share Pluso /wp-admin/options-general.php?page=mxsbap_share_pluso1,2572.3559.6674.55

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
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_mxsbap_share_table

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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 a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: buddypress social share, buddypress, buddypress share

share-buddypress-activity-pluso/share-buddypress-activity-pluso.php 92% from 13 tests

The main PHP file in "Share BuddyPress activity Pluso" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 194 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected3,283 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
CSS40152,227
SVG100685
PHP10219141342
JavaScript219129

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.24
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods21
▷ Static methods29.52%
▷ Public methods2095.24%
▷ Protected methods00.00%
▷ Private methods14.76%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin