78% absolute-addons

Code Review | Absolute Addons For Elementor

WordPress plugin Absolute Addons For Elementor scored78%from 54 tests.

About plugin

  • Plugin page: absolute-addons
  • Plugin version: 1.0.14
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Aug 3, 2021
  • Latest release: Jul 13, 2022
  • Number of updates: 41
  • Update frequency: every 8.4 days
  • Top authors: absoluteplugins (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

700+ active /6,180 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
Install script ran successfully

Server metrics [RAM: ▲1.03MB] [CPU: ▲3.78ms] Passed 4 tests

This is a short check of server-side resources used by Absolute Addons For Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.56 ▲1.1048.61 ▲8.85
Dashboard /wp-admin4.31 ▲1.0150.87 ▼1.03
Posts /wp-admin/edit.php4.37 ▲1.0257.93 ▲9.97
Add New Post /wp-admin/post-new.php7.16 ▲1.2798.92 ▼2.16
Media Library /wp-admin/upload.php4.23 ▲1.0042.09 ▲9.44
Add New /wp-admin/post-new.php?post_type=portfolio7.1590.14
Portfolios Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio4.2342.59
Add New /wp-admin/post-new.php?post_type=faq7.1587.70
Portfolio /wp-admin/edit.php?post_type=portfolio4.2946.38
FAQs /wp-admin/edit.php?post_type=faq4.2940.67
FAQs Categories /wp-admin/edit-tags.php?taxonomy=faq_category&post_type=faq4.2339.17
FAQs Tags /wp-admin/edit-tags.php?taxonomy=faq_tag&post_type=faq4.2237.49
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio4.2238.94

Server storage [IO: ▲10.93MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 528 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Absolute Addons For Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,082 ▲33614.11 ▼0.5311.76 ▲9.9843.05 ▼2.44
Dashboard /wp-admin2,358 ▲1674.87 ▼0.01114.56 ▲12.0344.86 ▼0.78
Posts /wp-admin/edit.php2,240 ▲1482.18 ▲0.1344.39 ▲2.9840.64 ▲4.56
Add New Post /wp-admin/post-new.php1,668 ▲14923.60 ▲0.21658.60 ▲68.6351.48 ▼1.38
Media Library /wp-admin/upload.php1,540 ▲1554.22 ▲0.0598.05 ▼0.2244.97 ▲2.31
Add New /wp-admin/post-new.php?post_type=portfolio6,30823.07874.2329.64
Portfolios Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio1,4142.1930.4834.63
Add New /wp-admin/post-new.php?post_type=faq1,64116.97757.5734.59
Portfolio /wp-admin/edit.php?post_type=portfolio1,2151.9831.6832.57
FAQs /wp-admin/edit.php?post_type=faq1,2121.9732.6232.81
FAQs Categories /wp-admin/edit-tags.php?taxonomy=faq_category&post_type=faq1,4142.1929.3935.47
FAQs Tags /wp-admin/edit-tags.php?taxonomy=faq_tag&post_type=faq1,3862.3126.9431.42
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio1,3862.3131.2933.49

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/absolute-addons/widgets/image-grid/template/template-image-grid-item-one.php
    • > /wp-content/plugins/absolute-addons/widgets/logo-grid/template/template-logo-grid-item-two.php
    • > /wp-content/plugins/absolute-addons/widgets/logo-grid/template/template-logo-grid-item-one.php
  • 110× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      require(): Failed opening required 'ABSOLUTE_ADDONS_WIDGETS_PATHportfolio/template/template-figure.php' (include_path='.:/usr/share/php') in wp-content/plugins/absolute-addons/widgets/portfolio/template/template-portfolio-item-four.php on line 18
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/absolute-addons/widgets/list-group/template/template-list-group-item-two.php:11
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/absolute-addons/widgets/advance-tab/template/template-advance-tab-item-eight.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/absolute-addons/widgets/counter/template/template-counter-item-seven.php:17
    • > PHP Fatal error
      require(): Failed opening required 'ABSOLUTE_ADDONS_WIDGETS_PATHportfolio/template/template-figure.php' (include_path='.:/usr/share/php') in wp-content/plugins/absolute-addons/widgets/portfolio/template/template-portfolio-item-nine.php on line 18
    • > PHP Warning
      require(ABSOLUTE_ADDONS_WIDGETS_PATHportfolio/template/template-figure.php): failed to open stream: No such file or directory in wp-content/plugins/absolute-addons/widgets/portfolio/template/template-portfolio-item-one.php on line 18
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/absolute-addons/widgets/team-carousel/template/template-team-carousel-item-nine.php:49
    • > PHP Notice
      Undefined variable: member in wp-content/plugins/absolute-addons/widgets/team-carousel/template/template-team-carousel-item-eight.php on line 21
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/absolute-addons/widgets/list-group/template/template-list-group-item-twelve.php:11
    • > PHP Warning
      Use of undefined constant ABSOLUTE_ADDONS_WIDGETS_PATH - assumed 'ABSOLUTE_ADDONS_WIDGETS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/absolute-addons/widgets/portfolio/template/template-portfolio-item-one.php on line 18

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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: elements, elementor, essential elementor widgets, elementor addons, elementor widget

absolute-addons/absolute-addons.php Passed 13 tests

"Absolute Addons For Elementor" version 1.0.14's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
42 characters long description:
Addon elements for Elementor Page Builder.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected74,566 lines of code in 469 files:
LanguageFilesBlank linesComment linesLines of code
PHP3376,9316,80256,504
SVG1158216,744
CSS9262711,139
JavaScript2822197178
JSON1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity25.84
▷ Minimum class complexity1.00
▷ Maximum class complexity148.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces6
Interfaces0
Traits4
Classes52
▷ Abstract classes11.92%
▷ Concrete classes5198.08%
▷ Final classes11.96%
Methods698
▷ Static methods7711.03%
▷ Public methods39857.02%
▷ Protected methods23633.81%
▷ Private methods649.17%
Functions59
▷ Named functions5389.83%
▷ Anonymous functions610.17%
Constants23
▷ Global constants834.78%
▷ Class constants1565.22%
▷ Public constants15100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
21 PNG files occupy 0.64MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/absp.png15.31KB4.63KB▼ 69.75%
assets/images/card3.png14.06KB5.37KB▼ 61.79%
assets/images/question.png9.42KB3.75KB▼ 60.23%
assets/images/upcoming.png1.50KB1.39KB▼ 7.74%
assets/images/team-11-item-1.png78.70KB45.27KB▼ 42.47%