90% button-group

Code Review | Button Group

WordPress plugin Button Group scored90%from 54 tests.

About plugin

  • Plugin page: button-group
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Aug 18, 2020
  • Latest release: Jun 7, 2023
  • Number of updates: 19
  • Update frequency: every 53.8 days
  • Top authors: wpdevteam (84.21%)alam789 (21.05%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,407 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼3.82ms] Passed 4 tests

This is a short check of server-side resources used by Button Group
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1344.45 ▼0.20
Dashboard /wp-admin3.42 ▲0.1162.92 ▲4.25
Posts /wp-admin/edit.php3.53 ▲0.1753.54 ▼3.72
Add New Post /wp-admin/post-new.php6.03 ▲0.1497.25 ▼11.77
Media Library /wp-admin/upload.php3.34 ▲0.1139.00 ▲0.43

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Button Group
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.30 ▼0.281.80 ▼0.1845.51 ▲1.76
Dashboard /wp-admin2,195 ▲185.67 ▼0.0294.46 ▼3.7542.12 ▼3.17
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0334.29 ▼3.8736.29 ▼0.14
Add New Post /wp-admin/post-new.php1,666 ▲14024.81 ▲7.26651.31 ▼62.2336.90 ▼8.98
Media Library /wp-admin/upload.php1,400 ▼04.25 ▲0.0395.55 ▼25.3246.67 ▼6.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: gutenberg blocks, blocks, block, button group, gutenberg...

button-group/button-group.php Passed 13 tests

The entry point to "Button Group" version 1.2.5 is a PHP file that has certain tags in its header comment area
41 characters long description:
Create Two Buttons To Be Stacked Together

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin17,977 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
SVG50012,231
CSS61,503485,075
PHP9108129597
JavaScript411465
JSON1009

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity24.00
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity5.04
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods26
▷ Static methods1038.46%
▷ Public methods2284.62%
▷ Protected methods00.00%
▷ Private methods415.38%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants3
▷ Global constants3100.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 were not PNG files found in your plugin