84% flexiaddons

Code Review | Flexi Addons for Elementor

WordPress plugin Flexi Addons for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: flexiaddons
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4.1
  • WordPress version: 6.3.1
  • First release: Jun 5, 2020
  • Latest release: Oct 28, 2020
  • Number of updates: 6
  • Update frequency: every 24.3 days
  • Top authors: wppool (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,370 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.50ms] Passed 4 tests

Server-side resources used by Flexi Addons for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.42 ▼4.08
Dashboard /wp-admin3.32 ▲0.0250.14 ▼4.40
Posts /wp-admin/edit.php3.37 ▲0.0250.27 ▲1.37
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.94 ▼12.12
Media Library /wp-admin/upload.php3.24 ▲0.0235.98 ▼1.40

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 98 new files
Database: no new tables, 8 new options
New WordPress options
flexiaddons_install_date
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
flexiaddons_version
theysaidso_admin_options

Browser metrics Passed 4 tests

Flexi Addons for Elementor: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7213.25 ▼1.351.77 ▼0.3140.23 ▼3.44
Dashboard /wp-admin2,242 ▲424.86 ▼0.08104.10 ▼17.5843.08 ▼21.99
Posts /wp-admin/edit.php2,118 ▲181.98 ▼0.0437.14 ▼4.4334.00 ▼6.86
Add New Post /wp-admin/post-new.php1,563 ▲1622.95 ▼0.10676.32 ▲78.4351.96 ▼7.87
Media Library /wp-admin/upload.php1,421 ▲214.28 ▲0.0498.61 ▼12.7644.39 ▼1.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • db_upgraded
    • widget_recent-posts
    • flexiaddons_version
    • theysaidso_admin_options
    • can_compress_scripts
    • flexiaddons_install_date
    • widget_theysaidso_widget
    • widget_recent-comments

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Flexi_Addons_Widgets_Manager' not found in wp-content/plugins/flexiaddons/includes/extensions/class-x-copy-paste.php:274

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #14, #15, #16 in flexiaddons/assets to your readme.txt
The official readme.txt is a good inspiration

flexiaddons/flexiaddons.php Passed 13 tests

The main file in "Flexi Addons for Elementor" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
106 characters long description:
A collection of premium quality & highly customizable addons or modules for use in Elementor page builder.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected32,797 lines of code in 90 files:
LanguageFilesBlank linesComment linesLines of code
PHP433,7922,65923,179
JavaScript181,4689498,750
CSS2311016817
JSON20035
SVG41016

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 104)
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity32.74
▷ Minimum class complexity1.00
▷ Maximum class complexity467.00
Average method complexity4.07
▷ Minimum method complexity1.00
▷ Maximum method complexity104.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes43
▷ Abstract classes12.33%
▷ Concrete classes4297.67%
▷ Final classes12.38%
Methods447
▷ Static methods419.17%
▷ Public methods17438.93%
▷ Protected methods23552.57%
▷ Private methods388.50%
Functions27
▷ Named functions2281.48%
▷ Anonymous functions518.52%
Constants12
▷ Global constants1083.33%
▷ Class constants216.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin