88% absolute-addons

Code Review | Absolute Addons For Elementor

WordPress plugin Absolute Addons For Elementor scored 88% from 54 tests.

About plugin

  • Plugin page: absolute-addons
  • Plugin version: 1.0.10
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9
  • WordPress version: 5.9.2
  • First release: Aug 3, 2021
  • Latest release: Mar 13, 2022
  • Number of updates: 31
  • Update frequency: every 7.2 days
  • Top authors: absoluteplugins (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active / 948 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲1.02MB] [CPU: ▼280.78ms] Passed 4 tests

An overview of server-side resources used by Absolute Addons For Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.57 ▲1.0565.70 ▲15.30
Dashboard /wp-admin4.41 ▲1.0041.53 ▲7.28
Posts /wp-admin/edit.php4.65 ▲1.0145.71 ▲0.03
Add New Post /wp-admin/post-new.php8.37 ▲1.40115.38 ▼1,145.73
Media Library /wp-admin/upload.php4.29 ▲1.0058.19 ▲32.22
Add New /wp-admin/post-new.php?post_type=faq8.36102.15
Add New /wp-admin/post-new.php?post_type=portfolio8.36100.04
Portfolio /wp-admin/edit.php?post_type=portfolio4.3440.53
FAQs Tags /wp-admin/edit-tags.php?taxonomy=faq_tag&post_type=faq4.2930.94
Portfolios Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio4.2951.31
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio4.2976.01
FAQs Categories /wp-admin/edit-tags.php?taxonomy=faq_category&post_type=faq4.2931.16
FAQs /wp-admin/edit.php?post_type=faq4.3431.56

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 527 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Absolute Addons For Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,121 ▲37916.54 ▲1.9010.87 ▲4.962.25 ▼0.09
Dashboard /wp-admin3,110 ▲2536.21 ▲0.14143.46 ▲22.93173.10 ▼55.88
Posts /wp-admin/edit.php2,905 ▲2143.38 ▲0.1569.43 ▼2.82234.37 ▲80.24
Add New Post /wp-admin/post-new.php1,800 ▲5117.82 ▼3.04404.56 ▼106.17180.28 ▲0.67
Media Library /wp-admin/upload.php1,914 ▲2165.59 ▲0.14151.99 ▼34.01211.41 ▲12.39
Add New /wp-admin/post-new.php?post_type=faq9,76519.30620.67166.93
Add New /wp-admin/post-new.php?post_type=portfolio9,74420.39504.78161.78
Portfolio /wp-admin/edit.php?post_type=portfolio1,5933.1866.64141.80
FAQs Tags /wp-admin/edit-tags.php?taxonomy=faq_tag&post_type=faq1,8062.9258.39129.64
Portfolios Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio1,8382.7959.95142.70
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio1,8062.9359.21130.95
FAQs Categories /wp-admin/edit-tags.php?taxonomy=faq_category&post_type=faq1,8332.7899.62153.99
FAQs /wp-admin/edit.php?post_type=faq1,5933.1965.90186.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/absolute-addons/widgets/logo-grid/template/template-logo-grid-item-two.php
    • > /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-one.php
  • 110× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/absolute-addons/widgets/service/template/template-service-item-twelve.php:13
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/absolute-addons/widgets/image-grid/template/template-image-grid-item-one.php on line 12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/absolute-addons/widgets/faq/controller/faq-post-query-controller.php:10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/absolute-addons/widgets/team-carousel/template/template-team-carousel-item-six.php on line 27
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/absolute-addons/widgets/testimonial/template/template-testimonial-item-two.php on line 18
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/absolute-addons/widgets/blog-page/template/template-blog-page-item-eleven.php:11
    • > 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-eight.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/absolute-addons/includes/ajax-handler.php:81
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/absolute-addons/coming-soon.php:12
    • > 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-six.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: elementor addons, elements, elementor widget, essential elementor widgets, elementor

absolute-addons/absolute-addons.php 92% from 13 tests

"Absolute Addons For Elementor" version 1.0.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Requires PHP: The required version number did not match the one declared in readme.txt ("5.6" instead of "7.1")

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
Success! There were no dangerous files found in this plugin73,879 lines of code in 471 files:
LanguageFilesBlank linesComment linesLines of code
PHP3376,6616,80455,942
SVG1158216,744
CSS951091631,142
JavaScript27118750
JSON1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity25.64
▷ Minimum class complexity1.00
▷ Maximum class complexity148.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces6
Interfaces0
Traits4
Classes52
▷ Abstract classes11.92%
▷ Concrete classes5198.08%
▷ Final classes11.96%
Methods697
▷ Static methods7711.05%
▷ Public methods39556.67%
▷ Protected methods23633.86%
▷ Private methods669.47%
Functions57
▷ Named functions5291.23%
▷ Anonymous functions58.77%
Constants22
▷ Global constants836.36%
▷ Class constants1463.64%
▷ Public constants14100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
21 PNG files occupy 0.64MB with 0.36MB 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/team-1.png125.97KB41.97KB▼ 66.68%
assets/images/tools.png7.84KB3.38KB▼ 56.90%
assets/images/team-11-item-1.png78.70KB45.27KB▼ 42.47%
assets/images/video-thumb.png3.06KB1.72KB▼ 43.91%