79% cafe-lite

Code Review | Clever Addons for Elementor

WordPress plugin Clever Addons for Elementor scored79%from 54 tests.

About plugin

  • Plugin page: cafe-lite
  • Plugin version: 2.1.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 22, 2019
  • Latest release: Jan 15, 2023
  • Number of updates: 45
  • Update frequency: every 27.6 days
  • Top authors: zootemplate (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

5,000+ active /115,519 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
This plugin's installer ran successfully

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

A check of server-side resources used by Clever Addons for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3043.17 ▲0.90
Dashboard /wp-admin3.71 ▲0.4151.83 ▲7.63
Posts /wp-admin/edit.php3.76 ▲0.4045.80 ▼3.90
Add New Post /wp-admin/post-new.php6.23 ▲0.3481.44 ▼19.26
Media Library /wp-admin/upload.php3.57 ▲0.3435.89 ▼0.36

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 143 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Clever Addons for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.34 ▼0.041.86 ▲0.0343.70 ▲0.09
Dashboard /wp-admin2,216 ▲395.55 ▲0.0398.50 ▲10.1542.36 ▲2.46
Posts /wp-admin/edit.php2,118 ▲182.11 ▲0.0934.99 ▲0.6334.87 ▼4.77
Add New Post /wp-admin/post-new.php1,542 ▲1623.47 ▲0.37668.50 ▲23.9154.13 ▼3.96
Media Library /wp-admin/upload.php1,415 ▲124.30 ▲0.1095.28 ▼0.2243.09 ▼1.39

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/cafe-lite/src/templates/template-animated-headlines.php
  • 165× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/cafe-lite/src/templates/template-posts.php on line 13
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cafe-lite/src/templates/template-icon.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/cafe-lite/src/templates/template-count-down.php:11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cafe-lite/src/templates/template-team-member.php on line 8
    • > PHP Notice
      Undefined index: infinite in wp-content/plugins/cafe-lite/src/templates/template-carousel-tabs.php on line 33
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/cafe-lite/src/templates/template-animated-headlines.php on line 24
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/cafe-lite/src/templates/template-icon.php on line 14
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cafe-lite/src/templates/template-animated-headlines.php on line 24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Cafe\\add_action() in wp-content/plugins/cafe-lite/src/class-clever-assets-manager.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Cafe\\Widgets\\CleverWidgetBase' not found in wp-content/plugins/cafe-lite/src/widgets/class-clever-button.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: elementor widgets, elementor templates, elementor elements, elementor, addons

cafe-lite/cafe-lite.php Passed 13 tests

The main file in "Clever Addons for Elementor" v. 2.1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
61 characters long description:
An ultimate addon for Elementor Page Builder. | Documentation

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin36,677 lines of code in 122 files:
LanguageFilesBlank linesComment linesLines of code
PHP681,2841,72417,740
Sass28952259,799
JavaScript149177127,603
CSS91731,166
SVG310369

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity7.08
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes39
▷ Abstract classes25.13%
▷ Concrete classes3794.87%
▷ Final classes3594.59%
Methods285
▷ Static methods93.16%
▷ Public methods20270.88%
▷ Protected methods7325.61%
▷ Private methods103.51%
Functions18
▷ Named functions950.00%
▷ Anonymous functions950.00%
Constants8
▷ Global constants225.00%
▷ Class constants675.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/banner-placeholder.png26.95KB3.80KB▼ 85.90%