93% webico-slider-flatsome-addons

Code Review | Webico Slider Flatsome Addons

WordPress plugin Webico Slider Flatsome Addons scored 93% from 54 tests.

About plugin

  • Plugin page: webico-slider-fla...
  • Plugin version: 2.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.0-5.7.2
  • WordPress version: 5.8.1
  • First release: Sep 23, 2018
  • Latest release: Jul 14, 2021
  • Number of updates: 13
  • Update frequency: every 78.9 days
  • Top authors: tranbinhcse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active / 3,176 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼139.63ms] Passed 4 tests

A check of server-side resources used by Webico Slider Flatsome Addons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0337.39 ▲3.36
Dashboard /wp-admin3.09 ▲0.0449.38 ▲0.77
Posts /wp-admin/edit.php3.14 ▲0.0447.71 ▲0.82
Add New Post /wp-admin/post-new.php5.46 ▲0.0393.20 ▼558.26
Media Library /wp-admin/upload.php3.04 ▲0.0337.97 ▼1.84

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 222 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Webico Slider Flatsome Addons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,683 ▲8815.82 ▲0.439.08 ▼2.7844.07 ▼2.87
Dashboard /wp-admin2,973 ▲395.89 ▼0.05143.18 ▼19.89133.68 ▲17.80
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0066.67 ▼0.4988.71 ▲0.93
Add New Post /wp-admin/post-new.php1,683 ▼018.72 ▼0.05407.20 ▼12.85107.09 ▼9.20
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.02160.89 ▼4.02117.33 ▼9.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 26× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/webico-slider-flatsome-addons/builder/commons/slide.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/webico-slider-flatsome-addons/builder/commons/links.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/webico-slider-flatsome-addons/builder/commons/repeater-options.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/webico-slider-flatsome-addons/builder/commons/repeater-slider.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webico-slider-flatsome-addons/shortcodes/wbc_slider.php:168
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/webico-slider-flatsome-addons/builder/helpers/colors.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/webico-slider-flatsome-addons/builder/helpers/colors-overlay.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/webico-slider-flatsome-addons/builder/commons/box-styles.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/webico-slider-flatsome-addons/builder/commons/title-options.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/webico-slider-flatsome-addons/builder/commons/background.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: flatsome addons, tran binh, webico, tinohost, tino group

webico-slider-flatsome-addons/wbc_slider_addons.php 69% from 13 tests

"Webico Slider Flatsome Addons" version 2.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.2" instead of "5.6")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("webico-slider-flatsome-addons.php" instead of "wbc_slider_addons.php")

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 plugin7,874 lines of code in 217 files:
LanguageFilesBlank linesComment linesLines of code
SVG14101265,382
PHP51162582,042
HTML25330450

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
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
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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 files were detected