84% themesflat-addons-for-elementor

Code Review | Themesflat Addons For Elementor

WordPress plugin Themesflat Addons For Elementor scored84%from 54 tests.

About plugin

  • Plugin page: themesflat-addons...
  • Plugin version: 2.0.6
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 21, 2020
  • Latest release: Sep 21, 2023
  • Number of updates: 137
  • Update frequency: every 8.5 days
  • Top authors: themesflat (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

30,000+ active /189,659 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.28MB] [CPU: ▼3.39ms] Passed 4 tests

Analyzing server-side resources used by Themesflat Addons For Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2838.99 ▼4.68
Dashboard /wp-admin3.58 ▲0.2847.82 ▼1.44
Posts /wp-admin/edit.php3.69 ▲0.3451.19 ▲1.45
Add New Post /wp-admin/post-new.php6.18 ▲0.2984.82 ▼8.89
Media Library /wp-admin/upload.php3.50 ▲0.2736.98 ▲2.87

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 138 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Themesflat Addons For Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7413.52 ▼1.061.68 ▼0.2543.19 ▼6.03
Dashboard /wp-admin2,240 ▲525.28 ▲0.18113.86 ▼5.2140.21 ▼6.61
Posts /wp-admin/edit.php2,122 ▲332.52 ▲0.5142.75 ▲3.5636.09 ▼3.12
Add New Post /wp-admin/post-new.php1,540 ▲2617.69 ▲0.09700.56 ▲50.2750.21 ▼6.60
Media Library /wp-admin/upload.php1,419 ▲314.49 ▲0.20101.66 ▲3.9342.67 ▲0.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
The following issues need your attention
  • 45× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/themesflat-addons-for-elementor/widgets/widget-testimonial-carousel.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/themesflat-addons-for-elementor/widgets/widget-clipping-mask.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/themesflat-addons-for-elementor/widgets/widget-carousel.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/themesflat-addons-for-elementor/widgets/widget-progress-bar.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/themesflat-addons-for-elementor/widgets/widget-mini-cart.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/themesflat-addons-for-elementor/widgets/widget-scroll-top.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/themesflat-addons-for-elementor/widgets/widget-post-author=============.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/themesflat-addons-for-elementor/widgets/widget-simple-slide.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/themesflat-addons-for-elementor/widgets/widget-post-comment.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/themesflat-addons-for-elementor/widgets/widget-team--.php:2

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)
No browser issues were found

Optimizations

Plugin configuration Passed 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: addons, elementor, elementor addon, themesflat, widget

themesflat-addons-for-elementor/themesflat-addons-for-elementor.php Passed 13 tests

The main file in "Themesflat Addons For Elementor" v. 2.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
22 characters long description:
The theme's components

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected61,512 lines of code in 118 files:
LanguageFilesBlank linesComment linesLines of code
PHP523,5351,31738,782
JavaScript332,5921,76711,542
CSS211,48117911,176
SVG120012

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
Please tend to the following items
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 273)
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity26.53
▷ Minimum class complexity1.00
▷ Maximum class complexity279.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity273.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes47
▷ Abstract classes00.00%
▷ Concrete classes47100.00%
▷ Final classes12.13%
Methods419
▷ Static methods296.92%
▷ Public methods32276.85%
▷ Protected methods9121.72%
▷ Private methods61.43%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/overlays/05.png0.21KB0.10KB▼ 52.11%
assets/css/overlays/03.png0.20KB0.10KB▼ 53.11%
assets/css/overlays/01.png0.21KB0.10KB▼ 53.05%
assets/css/overlays/07.png0.21KB0.10KB▼ 51.63%
assets/css/overlays/08.png2.66KB0.10KB▼ 96.07%