79% button-generation

Code Review | Button Generator - easily Button Builder

WordPress plugin Button Generator - easily Button Builder scored79%from 54 tests.

About plugin

  • Plugin page: button-generation
  • Plugin version: 2.3.8
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.4
  • WordPress version: 6.3.1
  • First release: Oct 26, 2018
  • Latest release: Oct 30, 2023
  • Number of updates: 35
  • Update frequency: every 52.3 days
  • Top authors: Wpcalc (57.14%)lobov (45.71%)

Code review

54 tests

User reviews

15 reviews

Install metrics

6,000+ active /51,612 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼3.69ms] Passed 4 tests

Server-side resources used by Button Generator - easily Button Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1841.48 ▼1.76
Dashboard /wp-admin3.46 ▲0.1649.22 ▼9.67
Posts /wp-admin/edit.php3.58 ▲0.2247.43 ▼2.06
Add New Post /wp-admin/post-new.php6.05 ▲0.1682.97 ▼1.26
Media Library /wp-admin/upload.php3.39 ▲0.1541.09 ▲9.17
Button Generator /wp-admin/admin.php?page=button-generation3.4733.87
Welcome /wp-admin/admin.php?page=wow-company3.3531.70

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 106 new files
Database: 1 new table, 8 new options
New tables
wp_wow_button_generator
New WordPress options
wow_button_data
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
wow_button_generator_notice_action
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Button Generator - easily Button Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲7114.46 ▼0.091.68 ▼0.2744.02 ▲1.99
Dashboard /wp-admin2,261 ▲875.62 ▲0.05101.76 ▼0.6342.30 ▼0.82
Posts /wp-admin/edit.php2,163 ▲632.00 ▲0.0740.32 ▲3.8532.66 ▼3.78
Add New Post /wp-admin/post-new.php1,550 ▲2423.20 ▼0.42676.86 ▲30.8962.42 ▲4.59
Media Library /wp-admin/upload.php1,466 ▲694.34 ▲0.16108.50 ▲4.2844.61 ▼0.57
Button Generator /wp-admin/admin.php?page=button-generation1,1422.1744.1434.11
Welcome /wp-admin/admin.php?page=wow-company9261.9926.4640.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_wow_button_generator
  • Zombie WordPress options detected upon uninstall: 8 options
    • wow_button_data
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • wow_button_generator_notice_action
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Button Generator), #2 (Button Style Settings)
Please take inspiration from this readme.txt

button-generation/button-generation.php 92% from 13 tests

Analyzing the main PHP file in "Button Generator - easily Button Builder" version 2.3.8
The following require your attention:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin21,416 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
SVG40129,464
CSS152,8331096,452
PHP345287874,693
JavaScript12144191807

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity17.17
▷ Minimum class complexity4.00
▷ Maximum class complexity45.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes233.33%
Methods52
▷ Static methods35.77%
▷ Public methods4892.31%
▷ Protected methods11.92%
▷ Private methods35.77%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png27.22KB15.00KB▼ 44.87%
includes/about/image/icon.png121.88KB28.08KB▼ 76.96%
screenshot-1.png17.01KB9.86KB▼ 42.00%