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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 25.56 ▲5.12 |
Dashboard /wp-admin | 3.06 ▲0.01 | 47.12 ▲10.27 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 42.87 ▲0.01 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 91.88 ▼544.37 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 30.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲73 | 15.99 ▲0.13 | 8.89 ▲0.80 | 42.16 ▼1.95 |
Dashboard /wp-admin | 2,970 ▲39 | 5.92 ▼0.06 | 132.09 ▼5.93 | 114.73 ▲14.33 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.00 | 67.17 ▲4.40 | 94.89 ▲12.97 |
Add New Post /wp-admin/post-new.php | 1,672 ▲172 | 18.90 ▲0.39 | 374.29 ▲24.83 | 109.25 ▼5.96 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▲0.00 | 140.47 ▼13.77 | 115.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.)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 141 | 22 | 635 |
CSS | 1 | 10 | 0 | 65 |
JavaScript | 1 | 0 | 4 | 1 |
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 code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
smileys/default/5.png | 5.04KB | 2.62KB | ▼ 48.01% |
screenshot-4.png | 9.93KB | 5.57KB | ▼ 43.95% |
smileys/default/13.png | 4.18KB | 2.42KB | ▼ 42.08% |
screenshot-1.png | 35.26KB | 12.32KB | ▼ 65.05% |
images/bg2.png | 0.14KB | 0.12KB | ▼ 12.06% |