83% oneelements-ultimate-addons-for-elementor

Code Review | OneElements - Best Elementor Addons

WordPress plugin OneElements - Best Elementor Addons scored83%from 54 tests.

About plugin

  • Plugin page: oneelements-ultim...
  • Plugin version: 1.3.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: Oct 31, 2019
  • Latest release: Feb 5, 2021
  • Number of updates: 33
  • Update frequency: every 14.2 days
  • Top authors: themexclub (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

400+ active /15,546 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.76ms] Passed 4 tests

Server-side resources used by OneElements - Best Elementor Addons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.08 ▲1.49
Dashboard /wp-admin3.31 ▲0.0144.97 ▼4.92
Posts /wp-admin/edit.php3.36 ▲0.0148.90 ▼4.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.34 ▼11.38
Media Library /wp-admin/upload.php3.23 ▲0.0134.50 ▲2.86

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 173 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for OneElements - Best Elementor Addons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲8913.17 ▼1.211.60 ▼0.2340.58 ▼11.95
Dashboard /wp-admin2,227 ▲394.86 ▼0.01110.30 ▼23.1045.99 ▼2.32
Posts /wp-admin/edit.php2,116 ▲232.02 ▼0.0442.40 ▼7.8337.72 ▲1.75
Add New Post /wp-admin/post-new.php1,555 ▲3523.25 ▲0.09612.36 ▼24.9456.82 ▲6.27
Media Library /wp-admin/upload.php1,415 ▲304.20 ▲0.05104.83 ▼1.3844.61 ▲1.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • 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
Even though everything seems fine, this is not 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
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/oneelements-ultimate-addons-for-elementor/includes/controls/one-elements-hover-animations.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function OneElements\\Includes\\add_action() in wp-content/plugins/oneelements-ultimate-addons-for-elementor/includes/class-one-elements-upgrader.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'OneElements\\Includes\\Widgets\\QueryControl\\Classes\\Elementor_Post_Query' not found in wp-content/plugins/oneelements-ultimate-addons-for-elementor/includes/widgets/query-control/classes/elementor-related-query.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/oneelements-ultimate-addons-for-elementor/includes/widgets/contact-form-7/contact-form-7.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function OneElements\\Admin\\Partials\\_e() in wp-content/plugins/oneelements-ultimate-addons-for-elementor/admin/partials/one-elements-admin-display.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/oneelements-ultimate-addons-for-elementor/includes/controls/one-elements-entrance-animations.php:43
    • > PHP Fatal error
      Trait 'OneElements\\Includes\\Traits\\One_Elements_Icon_Trait' not found in wp-content/plugins/oneelements-ultimate-addons-for-elementor/includes/traits/trait-one-elements-button.php on line 13

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 errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

oneelements-ultimate-addons-for-elementor/one-elements-elementor.php 85% from 13 tests

The principal PHP file in "OneElements - Best Elementor Addons" v. 1.3.7 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("oneelements-ultimate-addons-for-elementor.php" instead of "one-elements-elementor.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin36,913 lines of code in 144 files:
LanguageFilesBlank linesComment linesLines of code
PHP1286,3104,06830,647
CSS4863984,118
JavaScript111,1812712,147
SVG1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity17.02
▷ Minimum class complexity1.00
▷ Maximum class complexity181.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces43
Interfaces0
Traits10
Classes110
▷ Abstract classes32.73%
▷ Concrete classes10797.27%
▷ Final classes00.00%
Methods1,067
▷ Static methods484.50%
▷ Public methods60256.42%
▷ Protected methods33631.49%
▷ Private methods12912.09%
Functions44
▷ Named functions3477.27%
▷ Anonymous functions1022.73%
Constants32
▷ Global constants1856.25%
▷ Class constants1443.75%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
22 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/icon-box/layout_9.png0.63KB0.27KB▼ 56.81%
admin/assets/img/icon-box/layout_1.png0.65KB0.25KB▼ 62.13%
admin/assets/img/counter/layout_5.png1.50KB0.70KB▼ 53.49%
admin/assets/img/counter/layout_3.png1.39KB0.59KB▼ 57.33%
admin/assets/img/counter/layout_1.png1.45KB0.59KB▼ 59.05%