90% bp-poke

Code Review | BuddyPress Poke

WordPress plugin BuddyPress Poke scored90%from 54 tests.

About plugin

  • Plugin page: bp-poke
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.3.2
  • WordPress version: 6.3.1
  • First release: Nov 21, 2013
  • Latest release: Feb 10, 2020
  • Number of updates: 26
  • Update frequency: every 87.4 days
  • Top authors: sbrajesh (84.62%)anusharma (19.23%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /21,938 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼12.20ms] Passed 4 tests

This is a short check of server-side resources used by BuddyPress Poke
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.95 ▼9.52
Dashboard /wp-admin3.32 ▼0.0345.78 ▼15.99
Posts /wp-admin/edit.php3.37 ▲0.0142.53 ▼3.55
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.87 ▼16.50
Media Library /wp-admin/upload.php3.24 ▲0.0130.74 ▼6.78

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for BuddyPress Poke
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼1.461.62 ▼0.1840.84 ▼5.58
Dashboard /wp-admin2,206 ▲155.87 ▲1.00103.53 ▼3.0339.03 ▼2.07
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0134.33 ▼7.7232.77 ▼6.68
Add New Post /wp-admin/post-new.php1,542 ▲2818.46 ▲0.83599.23 ▼72.7953.17 ▼11.01
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0199.58 ▲0.5742.20 ▼2.58

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: user, poke, buddypress

bp-poke/bp-poke.php Passed 13 tests

The entry point to "BuddyPress Poke" version 1.1.2 is a PHP file that has certain tags in its header comment area
51 characters long description:
Allow Users to poke each other on a BuddyPress site

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
There were no executable files found in this plugin394 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5134196343
PO File1141551

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity6.33
▷ Minimum class complexity2.00
▷ Maximum class complexity14.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin