77% experto-cta-widget

Code Review | Experto CTA Widget - Call To Action, Sticky CTA, Floating Button Plugin

WordPress plugin Experto CTA Widget - Call To Action, Sticky CTA, Floating Button Plugin scored77%from 54 tests.

About plugin

  • Plugin page: experto-cta-widget
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.4-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 25, 2023
  • Latest release: Mar 14, 2023
  • Number of updates: 9
  • Update frequency: every 1.9 days
  • Top authors: uxdexperts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /576 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
Install script ran successfully

Server metrics [RAM: ▲0.35MB] [CPU: ▼4.47ms] Passed 4 tests

This is a short check of server-side resources used by Experto CTA Widget - Call To Action, Sticky CTA, Floating Button Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2651.08 ▲5.45
Dashboard /wp-admin3.67 ▲0.3752.63 ▲5.70
Posts /wp-admin/edit.php3.78 ▲0.4253.22 ▼2.15
Add New Post /wp-admin/post-new.php6.29 ▲0.4190.53 ▼24.60
Media Library /wp-admin/upload.php3.59 ▲0.3641.98 ▲3.43
ESC Dashboard /wp-admin/admin.php?page=esc3.5741.69
Settings /wp-admin/admin.php?page=esc-settings3.6139.68

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 45 new options
New WordPress options
esc_box_secondary_color
esc_box5_clicked
db_upgraded
esc_box3_icon
esc_body_desc_setting
esc_box4_icon
esc_box6_description
esc_box2_form_placeholder
esc_box6_icon
esc_box_text_color
...

Browser metrics Passed 4 tests

A check of browser resources used by Experto CTA Widget - Call To Action, Sticky CTA, Floating Button Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,473 ▲71213.46 ▼0.8910.18 ▲8.1118.18 ▼25.92
Dashboard /wp-admin2,599 ▲4195.64 ▲0.0386.79 ▼3.9252.56 ▲7.81
Posts /wp-admin/edit.php2,367 ▲2642.03 ▲0.0145.59 ▲1.4749.29 ▲11.43
Add New Post /wp-admin/post-new.php1,766 ▲23222.53 ▲4.32599.21 ▼27.5658.68 ▼10.23
Media Library /wp-admin/upload.php1,664 ▲2644.20 ▼0.07101.44 ▼2.7452.21 ▲9.38
ESC Dashboard /wp-admin/admin.php?page=esc1,2372.1827.4654.12
Settings /wp-admin/admin.php?page=esc-settings1,3731.8727.5370.41

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/experto-cta-widget/admin/partials/esc-screen-preview.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/experto-cta-widget/admin/partials/esc-admin-settings.php:60
    • > PHP Notice
      Undefined variable: tab in wp-content/plugins/experto-cta-widget/admin/partials/esc-screen-preview.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/experto-cta-widget/admin/partials/esc-admin-display.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/experto-cta-widget/admin/partials/esc-admin-dashboard.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/experto-cta-widget/admin/partials/dashboard/esc-graph.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/experto-cta-widget/public/partials/esc-public-display.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=esc-settings
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=esc-settings 255 The specified value "#000" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 86% 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
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 62 tag instead of maximum 10
The official readme.txt is a good inspiration

experto-cta-widget/esc.php 77% from 13 tests

Analyzing the main PHP file in "Experto CTA Widget - Call To Action, Sticky CTA, Floating Button Plugin" version 1.1.1
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 231 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("experto-cta-widget.php" instead of "esc.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin7,084 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
SVG4084,078
PHP153781711,466
CSS319421,187
JavaScript220662353

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity11.67
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods45
▷ Static methods24.44%
▷ Public methods4191.11%
▷ Protected methods00.00%
▷ Private methods48.89%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/img/uxdesign-logo-icon.png1.74KB1.22KB▼ 30.01%