74% modern-addons-elementor

Code Review | Modern Addons for Elementor Page Builder

WordPress plugin Modern Addons for Elementor Page Builder scored74%from 54 tests.

About plugin

  • Plugin page: modern-addons-ele...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.1
  • WordPress version: 6.3.1
  • First release: Mar 26, 2020
  • Latest release: Jan 14, 2023
  • Number of updates: 24
  • Update frequency: every 42.7 days
  • Top authors: gowebsmarty (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,976 total downloads

Benchmarks

Plugin footprint 65% 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.48MB] [CPU: ▲0.36ms] Passed 4 tests

Analyzing server-side resources used by Modern Addons for Elementor Page Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.5046.35 ▲5.11
Dashboard /wp-admin3.80 ▲0.4949.69 ▼5.34
Posts /wp-admin/edit.php3.85 ▲0.4954.13 ▲0.18
Add New Post /wp-admin/post-new.php6.32 ▲0.43102.51 ▲2.01
Media Library /wp-admin/upload.php3.72 ▲0.4940.63 ▲4.58
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius3.9134.52

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 307 new files
Database: no new tables, 10 new options
New WordPress options
fs_debug_mode
fs_gdpr
widget_recent-posts
fs_accounts
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
fs_active_plugins

Browser metrics Passed 4 tests

An overview of browser requirements for Modern Addons for Elementor Page Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲9614.44 ▲0.081.94 ▲0.4132.70 ▼10.45
Dashboard /wp-admin2,238 ▲645.64 ▲0.0692.37 ▲0.7548.28 ▲2.01
Posts /wp-admin/edit.php2,147 ▲502.10 ▲0.1241.53 ▲3.9338.62 ▼0.15
Add New Post /wp-admin/post-new.php1,554 ▲2823.21 ▼0.16669.21 ▼21.3367.29 ▲13.21
Media Library /wp-admin/upload.php1,440 ▲434.21 ▲0.0099.18 ▼2.2747.98 ▲3.82
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,0731.6824.1427.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/modern-addons-elementor/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • Zombie WordPress options were found after uninstall: 10 options
    • fs_active_plugins
    • theysaidso_admin_options
    • fs_accounts
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • fs_debug_mode
    • fs_gdpr

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
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
Please fix the following items
  • 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ModernAddonsElementor\\Inc\\Handler_Widgets' not found in wp-content/plugins/modern-addons-elementor/widgets/teammember/teammember-handler.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ModernAddonsElementor\\Inc\\Handler_Widgets' not found in wp-content/plugins/modern-addons-elementor/widgets/iconbox/iconbox-handler.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ModernAddonsElementor\\Inc\\Handler_Widgets' not found in wp-content/plugins/modern-addons-elementor/widgets/horizontalimage/horizontalimage-handler.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ModernAddonsElementor\\Inc\\Handler_Widgets' not found in wp-content/plugins/modern-addons-elementor/widgets/tabs/tabs-handler.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ModernAddonsElementor\\Inc\\Handler_Widgets' not found in wp-content/plugins/modern-addons-elementor/widgets/popcontent/popcontent-handler.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ModernAddonsElementor\\Inc\\Handler_Widgets' not found in wp-content/plugins/modern-addons-elementor/widgets/testimonials/testimonials-handler.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ModernAddonsElementor\\plugin_dir_path() in wp-content/plugins/modern-addons-elementor/inc/mdel-activator.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ModernAddonsElementor\\Inc\\Handler_Widgets' not found in wp-content/plugins/modern-addons-elementor/widgets/pricingtable/pricingtable-handler.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ModernAddonsElementor\\Inc\\Handler_Widgets' not found in wp-content/plugins/modern-addons-elementor/widgets/beforeafter/beforeafter-handler.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ModernAddonsElementor\\Inc\\Handler_Widgets' not found in wp-content/plugins/modern-addons-elementor/widgets/accordion/accordion-handler.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #3 (Pricing table elementor addon)
You can take inspiration from this readme.txt

modern-addons-elementor/modern-addons-elementor.php Passed 13 tests

The entry point to "Modern Addons for Elementor Page Builder" version 1.2.0 is a PHP file that has certain tags in its header comment area
129 characters long description:
The last Elementor addon you need to create stunning premium design elements with Elementor page builder and pure CSS3 animations

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
No dangerous file extensions were detected39,694 lines of code in 219 files:
LanguageFilesBlank linesComment linesLines of code
PHP1488,22516,84035,165
CSS48463562,919
Sass16290491,377
JavaScript75186233

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity49.91
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces18
Interfaces0
Traits0
Classes85
▷ Abstract classes22.35%
▷ Concrete classes8397.65%
▷ Final classes11.20%
Methods1,381
▷ Static methods29121.07%
▷ Public methods1,00072.41%
▷ Protected methods543.91%
▷ Private methods32723.68%
Functions100
▷ Named functions9898.00%
▷ Anonymous functions22.00%
Constants133
▷ Global constants10578.95%
▷ Class constants2821.05%
▷ Public constants28100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.48MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon.png3.29KB0.61KB▼ 81.36%
assets/img/mini-icon.png43.08KB14.52KB▼ 66.28%
assets/lib/css/images/controls.png2.74KB1.42KB▼ 48.29%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/img/logo.png46.94KB12.46KB▼ 73.45%