90% buttonz

Code Review | ButtonZ - Elementor Addon

WordPress plugin ButtonZ - Elementor Addon scored90%from 54 tests.

About plugin

  • Plugin page: buttonz
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6
  • WordPress version: 6.3.1
  • First release: Feb 19, 2021
  • Latest release: Feb 24, 2021
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: mdjwel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /630 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.30MB] [CPU: ▼1.29ms] Passed 4 tests

An overview of server-side resources used by ButtonZ - Elementor Addon
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3444.25 ▼0.60
Dashboard /wp-admin3.64 ▲0.3352.65 ▼0.14
Posts /wp-admin/edit.php3.69 ▲0.3354.61 ▲4.08
Add New Post /wp-admin/post-new.php6.16 ▲0.2791.12 ▼7.79
Media Library /wp-admin/upload.php3.50 ▲0.2740.79 ▲3.38

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by ButtonZ - Elementor Addon
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.36 ▼0.272.30 ▲0.5347.23 ▲2.47
Dashboard /wp-admin2,227 ▲475.55 ▼0.1389.47 ▲3.5838.32 ▼2.35
Posts /wp-admin/edit.php2,138 ▲412.17 ▲0.2040.09 ▲3.5335.30 ▼0.09
Add New Post /wp-admin/post-new.php1,561 ▲3523.15 ▼0.02664.68 ▼30.0855.70 ▼5.74
Media Library /wp-admin/upload.php1,435 ▲354.22 ▲0.02110.68 ▼1.5849.74 ▲1.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
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
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: elementor widget, button, button hover effects, addons, elementor

buttonz/buttonz.php Passed 13 tests

"ButtonZ - Elementor Addon" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
97 characters long description:
ButtonZ is a powerful plugin for creating any kind of button that you can imagine with Elementor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected17,636 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
CSS114731988,958
SVG5005,031
PHP176008092,914
JSON400436
Markdown2800243
JavaScript22054

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity27.40
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods136
▷ Static methods85.88%
▷ Public methods9872.06%
▷ Protected methods96.62%
▷ Private methods2921.32%
Functions12
▷ Named functions1083.33%
▷ Anonymous functions216.67%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon.png14.13KB4.70KB▼ 66.72%