84% bp-memories

Code Review | BP Memories

WordPress plugin BP Memories scored84%from 54 tests.

About plugin

  • Plugin page: bp-memories
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 21, 2017
  • Latest release: Jul 10, 2017
  • Number of updates: 3
  • Update frequency: every 56.0 days
  • Top authors: sanket.parmar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,779 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.23MB] [CPU: ▼14.03ms] Passed 4 tests

Analyzing server-side resources used by BP Memories
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.03 ▼6.09
Dashboard /wp-admin3.40 ▲0.1049.49 ▼7.51
Posts /wp-admin/edit.php3.52 ▲0.1650.26 ▲0.78
Add New Post /wp-admin/post-new.php4.69 ▼1.1946.68 ▼43.30
Media Library /wp-admin/upload.php3.33 ▲0.1037.59 ▲1.77

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for BP Memories
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,677 ▼8414.24 ▼0.111.15 ▼0.9723.64 ▼20.76
Dashboard /wp-admin2,192 ▲125.62 ▼0.0292.21 ▲2.3141.90 ▼0.76
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0641.32 ▲3.6535.57 ▼0.23
Add New Post /wp-admin/post-new.php45 ▼1,4830.42 ▼22.750.07 ▼678.1411.09 ▼36.56
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.08103.67 ▼9.9767.90 ▲19.12

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 8 options
    • bpm_memory_page
    • recovery_mode_email_last_sent
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bp-memories/public/partials/memories.php:16

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


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
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 is a good inspiration

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

"BP Memories" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
53 characters long description:
This plugin is useful to see memories for BuddyPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected625 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot 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.26
Average class complexity3.80
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1979.17%
▷ Protected methods00.00%
▷ Private methods520.83%
▷ Named functions17100.00%
▷ Anonymous functions00.00%
▷ 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
There are no PNG files in this plugin