89% buddypress-sticker

Code Review | BuddyPress Sticker

WordPress plugin BuddyPress Sticker scored89%from 54 tests.

About plugin

  • Plugin page: buddypress-sticker
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5
  • WordPress version: 6.3.1
  • First release: Jun 6, 2015
  • Latest release: Jun 5, 2016
  • Number of updates: 6
  • Update frequency: every 61.5 days
  • Top authors: aghajoon (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

70+ active /9,523 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.59 ▼6.71
Dashboard /wp-admin3.33 ▲0.0349.92 ▲0.14
Posts /wp-admin/edit.php3.38 ▲0.0352.23 ▼1.93
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.28 ▼9.58
Media Library /wp-admin/upload.php3.25 ▲0.0337.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13714.07 ▼0.347.42 ▲5.4939.44 ▼5.74
Dashboard /wp-admin2,209 ▲215.81 ▼0.01107.36 ▼1.2037.98 ▼6.77
Posts /wp-admin/edit.php2,092 ▲31.96 ▼0.0440.04 ▼0.1735.16 ▼1.90
Add New Post /wp-admin/post-new.php1,535 ▲1623.14 ▼0.15662.01 ▲65.3350.83 ▼12.39
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0195.88 ▼10.5145.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)
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP1218116
JavaScript116883
CSS110070

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 code0.24
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods333.33%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/sticons/N.png9.19KB3.51KB▼ 61.80%
images/sticons/Cut4.png12.14KB4.13KB▼ 65.95%
images/sticons/S.png9.41KB3.64KB▼ 61.27%
images/sticons/29-Hacker-Boy.png17.36KB5.96KB▼ 65.65%
images/sticons/AP.png2.03KB1.85KB▼ 8.82%