99% buddypress-mymood

Code Review | BuddyPress MyMood

WordPress plugin BuddyPress MyMood scored 99% from 54 tests.

About plugin

  • Plugin page: buddypress-mymood
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.5
  • WordPress version: 5.8.1
  • First release: Apr 22, 2012
  • Latest release: Dec 23, 2012
  • Number of updates: 33
  • Update frequency: every 7.4 days
  • Top authors: sorcererayush (81.82%)webgarb (21.21%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active / 21,100 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by BuddyPress MyMood
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1225.56 ▲5.12
Dashboard /wp-admin3.06 ▲0.0147.12 ▲10.27
Posts /wp-admin/edit.php3.11 ▲0.0142.87 ▲0.01
Add New Post /wp-admin/post-new.php5.42 ▼0.0191.88 ▼544.37
Media Library /wp-admin/upload.php3.00 ▲0.0030.68 ▼0.42

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for BuddyPress MyMood
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲7315.99 ▲0.138.89 ▲0.8042.16 ▼1.95
Dashboard /wp-admin2,970 ▲395.92 ▼0.06132.09 ▼5.93114.73 ▲14.33
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0067.17 ▲4.4094.89 ▲12.97
Add New Post /wp-admin/post-new.php1,672 ▲17218.90 ▲0.39374.29 ▲24.83109.25 ▼5.96
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.00140.47 ▼13.77115.95 ▼4.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (BuddyPress MyMood Option In Activity Stream.), #2 (BuddyPress MyMood Mood in Activity Update.), #3 (BuddyPress MyMood in Profile Header.), #4 (BuddyPress MyMood Admin page.)
Please take inspiration from this readme.txt

buddypress-mymood/loader.php 92% from 13 tests

The main file in "BuddyPress MyMood" v. 1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("buddypress-mymood.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected701 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP714122635
CSS110065
JavaScript1041

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Constants4
▷ Global constants4100.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
23 PNG files occupy 0.28MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
smileys/default/5.png5.04KB2.62KB▼ 48.01%
screenshot-4.png9.93KB5.57KB▼ 43.95%
smileys/default/13.png4.18KB2.42KB▼ 42.08%
screenshot-1.png35.26KB12.32KB▼ 65.05%
images/bg2.png0.14KB0.12KB▼ 12.06%