Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.52ms] Passed 4 tests
This is a short check of server-side resources used by BuddyPress Sticker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.59 ▼6.71 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.92 ▲0.14 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 52.23 ▼1.93 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 89.28 ▼9.58 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 37.73 ▲6.98 |
Server storage [IO: ▲1.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 118 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by BuddyPress Sticker
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲137 | 14.07 ▼0.34 | 7.42 ▲5.49 | 39.44 ▼5.74 |
Dashboard /wp-admin | 2,209 ▲21 | 5.81 ▼0.01 | 107.36 ▼1.20 | 37.98 ▼6.77 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.96 ▼0.04 | 40.04 ▼0.17 | 35.16 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,535 ▲16 | 23.14 ▼0.15 | 662.01 ▲65.33 | 50.83 ▼12.39 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▲0.01 | 95.88 ▼10.51 | 45.32 ▲0.52 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 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 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
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 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (sticker), #2 (sticker)
buddypress-sticker/bp-sticker.php 92% from 13 tests
This is the main PHP file of "BuddyPress Sticker" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("buddypress-sticker.php" instead of "bp-sticker.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected269 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 8 | 116 |
JavaScript | 1 | 16 | 8 | 83 |
CSS | 1 | 10 | 0 | 70 |
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 issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 3 | 33.33% |
▷ Public methods | 8 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 11.11% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
114 PNG files occupy 1.81MB with 0.95MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sticons/N.png | 9.19KB | 3.51KB | ▼ 61.80% |
images/sticons/Cut4.png | 12.14KB | 4.13KB | ▼ 65.95% |
images/sticons/S.png | 9.41KB | 3.64KB | ▼ 61.27% |
images/sticons/29-Hacker-Boy.png | 17.36KB | 5.96KB | ▼ 65.65% |
images/sticons/AP.png | 2.03KB | 1.85KB | ▼ 8.82% |