84% classy-addons-for-elementor

Code Review | Classy Addons for Elementor

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

About plugin

  • Plugin page: classy-addons-for...
  • Plugin version: 1.2.7
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Nov 25, 2021
  • Latest release: Aug 14, 2022
  • Number of updates: 34
  • Update frequency: every 7.7 days
  • Top authors: classyaddons (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

800+ active /5,521 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.33MB] [CPU: ▼6.55ms] Passed 4 tests

An overview of server-side resources used by Classy Addons for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3336.82 ▼2.28
Dashboard /wp-admin3.67 ▲0.3756.24 ▲11.89
Posts /wp-admin/edit.php3.72 ▲0.3755.20 ▲0.99
Add New Post /wp-admin/post-new.php6.19 ▲0.3180.78 ▼18.44
Media Library /wp-admin/upload.php3.53 ▲0.3138.24 ▼6.46

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 183 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
classyea_installed
theysaidso_admin_options
db_upgraded
classyea_enable_widget
classyea_version
widget_recent-comments

Browser metrics Passed 4 tests

Classy Addons for Elementor: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.32 ▼1.061.69 ▲0.0439.32 ▼2.22
Dashboard /wp-admin2,234 ▲465.88 ▼0.00100.87 ▼1.4973.10 ▲29.38
Posts /wp-admin/edit.php2,128 ▲392.02 ▼0.0038.88 ▲2.2934.89 ▲1.94
Add New Post /wp-admin/post-new.php1,706 ▲18222.29 ▼0.82746.63 ▲96.5556.81 ▲5.08
Media Library /wp-admin/upload.php1,422 ▲344.18 ▼0.0996.59 ▼3.5372.08 ▲26.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • classyea_installed
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 18× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/classy-addons-for-elementor/includes/functions.php:76
    • > PHP Warning
      Use of undefined constant CLASSYEA_PLUGIN_URL - assumed 'CLASSYEA_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/classy-addons-for-elementor/includes/Admin/templates/classyea-general-setting.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Skin_Base' not found in wp-content/plugins/classy-addons-for-elementor/includes/Classyea_Module/Widgets/Classyea_Layout_Two_Acc.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ClassyEa\\Helper\\Template\\add_action() in wp-content/plugins/classy-addons-for-elementor/includes/Template/Classyea_Templates_Lib.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/classy-addons-for-elementor/includes/Admin/templates/classyea-widget-setting.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/classy-addons-for-elementor/includes/functions.php:76
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Skin_Base' not found in wp-content/plugins/classy-addons-for-elementor/includes/Classyea_Module/Widgets/Classyea_Layout_Two_Acc.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/classy-addons-for-elementor/includes/Classyea_Module/Widgets/Classyea_Twitter_Posts.php:7
    • > PHP Fatal error
      Trait 'ClassyEa\\Helper\\Traits\\Classyea_Module' not found in wp-content/plugins/classy-addons-for-elementor/includes/Classyea_Module/Classyea_Element.php on line 7
    • > PHP Fatal error
      Trait 'ClassyEa\\Helper\\Traits\\Classyea_Module' not found in wp-content/plugins/classy-addons-for-elementor/includes/Admin/Admin_Setting/Classyea_General_Setting.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
9 plugin tags: addons for elementor, classyaddons, elementor extensions, elementor addon, elementor addons...

classy-addons-for-elementor/classy-addons-for-elementor.php 92% from 13 tests

The main file in "Classy Addons for Elementor" v. 1.2.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 281 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin45,318 lines of code in 149 files:
LanguageFilesBlank linesComment linesLines of code
PHP662,6402,38932,922
CSS442,3921357,744
JavaScript348237274,610
SVG30023
JSON20019

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity23.55
▷ Minimum class complexity1.00
▷ Maximum class complexity102.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces11
Interfaces0
Traits1
Classes55
▷ Abstract classes11.82%
▷ Concrete classes5498.18%
▷ Final classes11.85%
Methods570
▷ Static methods488.42%
▷ Public methods34159.82%
▷ Protected methods20736.32%
▷ Private methods223.86%
Functions17
▷ Named functions1376.47%
▷ Anonymous functions423.53%
Constants14
▷ Global constants964.29%
▷ Class constants535.71%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/elementor/front/images/icon-cross.png1.11KB0.25KB▼ 77.74%
assets/elementor/front/images/divider-4.png1.84KB1.47KB▼ 20.36%
assets/images/quote-1.png5.23KB3.47KB▼ 33.66%
assets/elementor/front/images/line-three.png1.30KB0.92KB▼ 29.71%