89% cafe-lite

Code Review | Clever Addons for Elementor

WordPress plugin Clever Addons for Elementor scored 89% from 54 tests.

About plugin

  • Plugin page: cafe-lite
  • Plugin version: 2.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 5.8.1
  • First release: Aug 22, 2019
  • Latest release: Sep 20, 2021
  • Number of updates: 40
  • Update frequency: every 19.0 days
  • Top authors: zootemplate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

8,000+ active / 74,039 total downloads


Plugin footprint Passed 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.37MB] [CPU: ▼148.09ms] 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.13 ▲0.4138.51 ▲15.02
Dashboard /wp-admin3.46 ▲0.4148.05 ▲1.28
Posts /wp-admin/edit.php3.51 ▲0.4045.18 ▼1.98
Add New Post /wp-admin/post-new.php5.76 ▲0.33118.50 ▼586.05
Media Library /wp-admin/upload.php3.34 ▲0.3336.14 ▼5.60

Server storage [IO: ▲3.30MB] [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, no new options

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 /3,702 ▲10715.97 ▲0.308.20 ▼5.7847.12 ▲3.64
Dashboard /wp-admin2,990 ▲595.97 ▼0.01141.54 ▼17.12106.09 ▼7.12
Posts /wp-admin/edit.php2,762 ▲232.83 ▲0.1169.48 ▲0.6592.45 ▲4.91
Add New Post /wp-admin/post-new.php1,699 ▲8418.85 ▼2.55442.54 ▲53.06110.76 ▲6.53
Media Library /wp-admin/upload.php1,830 ▲235.03 ▲0.00177.38 ▲24.89118.05 ▼1.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

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
  • 163× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cafe-lite/src/templates/template-hot-spots.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cafe-lite/src/templates/template-timeline.php on line 9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cafe-lite/src/templates/template-multi-banner.php on line 19
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/cafe-lite/src/templates/template-button.php on line 21
    • > 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 Notice
      Undefined variable: settings in wp-content/plugins/cafe-lite/src/templates/template-banner.php on line 30
    • > PHP Notice
      Undefined index: autoplay_mobile in wp-content/plugins/cafe-lite/src/templates/template-carousel-tabs.php on line 22
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/cafe-lite/src/templates/template-carousel-tabs.php on line 9
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/cafe-lite/src/templates/template-instagram.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/cafe-lite/src/templates/template-instagram.php:65

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


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, addons, elementor elements, elementor

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

The main file in "Clever Addons for Elementor" v. 2.1.3 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,094 lines of code in 122 files:
LanguageFilesBlank linesComment linesLines of code

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.28
Average class complexity7.05
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
▷ Abstract classes25.13%
▷ Concrete classes3794.87%
▷ Final classes3594.59%
▷ Static methods93.16%
▷ Public methods20270.88%
▷ Protected methods7325.61%
▷ Private methods103.51%
▷ Named functions950.00%
▷ Anonymous functions950.00%
▷ 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%