90% easy-sticky-buttons

Code Review | Easy Sticky Buttons

WordPress plugin Easy Sticky Buttons scored90%from 54 tests.

About plugin

  • Plugin page: easy-sticky-buttons
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: May 7, 2021
  • Latest release: Feb 20, 2023
  • Number of updates: 7
  • Update frequency: every 93.9 days
  • Top authors: bugraozdur (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /3,798 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
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.57ms] Passed 4 tests

A check of server-side resources used by Easy Sticky Buttons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.89 ▲1.33
Dashboard /wp-admin3.35 ▲0.0546.49 ▼2.57
Posts /wp-admin/edit.php3.40 ▲0.0446.43 ▼1.87
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.86 ▼11.18
Media Library /wp-admin/upload.php3.27 ▲0.0435.45 ▲1.85

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Sticky Buttons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲5313.22 ▼1.161.65 ▼0.1845.74 ▲1.59
Dashboard /wp-admin2,222 ▲445.84 ▲0.7398.33 ▼12.0540.19 ▼7.56
Posts /wp-admin/edit.php2,105 ▲162.01 ▲0.0439.18 ▼2.1835.18 ▼2.60
Add New Post /wp-admin/post-new.php1,527 ▲517.86 ▼5.51632.32 ▲50.6961.16 ▲6.87
Media Library /wp-admin/upload.php1,398 ▲104.24 ▲0.0598.66 ▼5.0744.28 ▼3.94

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: whatsapp message button, social links, telegram message button, call button, sticky buttons

easy-sticky-buttons/easy-sticky-buttons-plugin.php 92% from 13 tests

The main PHP file in "Easy Sticky Buttons" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-sticky-buttons.php" instead of "easy-sticky-buttons-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin16,453 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
SVG3009,552
CSS63,007206,344
PHP62515479
JavaScript23378

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin