90% juicy-contact-button

Code Review | Juicy Contact Button

WordPress plugin Juicy Contact Button scored90%from 54 tests.

About plugin

  • Plugin page: juicy-contact-button
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Jun 23, 2022
  • Latest release: Apr 3, 2023
  • Number of updates: 9
  • Update frequency: every 31.4 days
  • Top authors: dmitrylitvinov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,208 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.85ms] Passed 4 tests

This is a short check of server-side resources used by Juicy Contact Button
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.64 ▼6.27
Dashboard /wp-admin3.40 ▲0.1050.62 ▼0.63
Posts /wp-admin/edit.php3.52 ▲0.1651.09 ▲1.68
Add New Post /wp-admin/post-new.php5.98 ▲0.1081.73 ▼22.19
Media Library /wp-admin/upload.php3.32 ▲0.1036.18 ▲1.94
Juicy contact button settings /wp-admin/options-general.php?page=juicy-contact-button-plugin-options3.2932.03

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Juicy Contact Button
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,159 ▲41313.32 ▼0.949.99 ▲8.2461.15 ▲19.49
Dashboard /wp-admin2,210 ▲225.83 ▲0.9698.20 ▼20.8541.81 ▼0.55
Posts /wp-admin/edit.php2,093 ▲11.98 ▼0.0735.59 ▼1.8531.29 ▼2.48
Add New Post /wp-admin/post-new.php1,540 ▲618.07 ▼0.40656.67 ▲14.2651.78 ▲0.49
Media Library /wp-admin/upload.php1,392 ▲44.22 ▲0.0498.09 ▼0.3942.35 ▼2.56
Juicy contact button settings /wp-admin/options-general.php?page=juicy-contact-button-plugin-options9782.0828.4930.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: button, whatsapp, contact, telegram, float

juicy-contact-button/juicy-contact-button.php 92% from 13 tests

"Juicy Contact Button" version 1.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 195 characters long)

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 plugin302 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP210727302

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods19100.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin