83% buttons-widgets-for-elementor

Code Review | Buttons Widget | Full Elementor

WordPress plugin Buttons Widget | Full Elementor scored83%from 54 tests.

About plugin

  • Plugin page: buttons-widgets-f...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 4, 2020
  • Latest release: Jun 15, 2020
  • Number of updates: 7
  • Update frequency: every 19.0 days
  • Top authors: fullelementor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,210 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.81ms] Passed 4 tests

Server-side resources used by Buttons Widget | Full Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.05 ▲2.49
Dashboard /wp-admin3.32 ▼0.0245.59 ▼16.04
Posts /wp-admin/edit.php3.37 ▲0.0243.23 ▼6.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.10 ▼10.55
Media Library /wp-admin/upload.php3.24 ▲0.0234.98 ▲1.48

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Buttons Widget | Full Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8514.11 ▼0.241.91 ▲0.2645.07 ▼0.16
Dashboard /wp-admin2,215 ▲385.67 ▲0.0681.46 ▼5.0238.08 ▼3.10
Posts /wp-admin/edit.php2,117 ▲142.05 ▲0.0337.43 ▼9.8136.42 ▲0.02
Add New Post /wp-admin/post-new.php1,540 ▲1223.38 ▲0.36624.48 ▼32.1153.03 ▼3.61
Media Library /wp-admin/upload.php1,411 ▲114.17 ▼0.0997.87 ▼10.2541.87 ▼5.05

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 were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Buttons_Widgets\\add_action() in wp-content/plugins/buttons-widgets-for-elementor/plugin.php:64

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: You can take inspiration from this readme.txt

buttons-widgets-for-elementor/Buttons.php 85% from 13 tests

"Buttons Widget | Full Elementor" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("buttons-widgets-for-elementor.php" instead of "Buttons.php")

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
Good job! No executable or dangerous file extensions detected2,352 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS222201,224
PHP3133151,125
JavaScript1203

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity9.33
▷ Minimum class complexity2.00
▷ Maximum class complexity19.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods22
▷ Static methods313.64%
▷ Public methods1986.36%
▷ Protected methods29.09%
▷ Private methods14.55%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin