84% my-elementor-addons

Code Review | My Elementor Addons

WordPress plugin My Elementor Addons scored84%from 54 tests.

About plugin

  • Plugin page: my-elementor-addons
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Jul 15, 2021
  • Latest release: Jul 18, 2021
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: mdataur (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /398 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by My Elementor Addons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.09 ▼2.04
Dashboard /wp-admin3.31 ▲0.0144.88 ▼1.70
Posts /wp-admin/edit.php3.36 ▲0.0146.28 ▼5.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.46 ▼16.17
Media Library /wp-admin/upload.php3.23 ▲0.0135.18 ▲1.91

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for My Elementor Addons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲9714.47 ▲0.171.98 ▲0.1843.06 ▲4.01
Dashboard /wp-admin2,221 ▲305.85 ▲0.92106.78 ▼0.3545.08 ▼3.59
Posts /wp-admin/edit.php2,103 ▲142.04 ▼0.0237.97 ▼2.8336.94 ▼1.34
Add New Post /wp-admin/post-new.php1,546 ▲923.36 ▲0.16626.71 ▲40.2454.67 ▼12.19
Media Library /wp-admin/upload.php1,406 ▲244.27 ▲0.0296.79 ▼1.6043.97 ▲0.24

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MyElementorAddons\\Elementor\\add_action() in wp-content/plugins/my-elementor-addons/plugin.php:148

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 uses markdown syntax to describe your plugin to the world
5 plugin tags: elementor addon, elementor widget, elements, elementor, elementor addons

my-elementor-addons/my-elementor-addons.php 92% from 13 tests

The main PHP file in "My Elementor Addons" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected9,497 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP167987096,261
JavaScript74929732,053
CSS18196791,183

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity9.14
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes14
▷ Abstract classes17.14%
▷ Concrete classes1392.86%
▷ Final classes17.69%
Methods90
▷ Static methods33.33%
▷ Public methods5257.78%
▷ Protected methods3640.00%
▷ Private methods22.22%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/vendor/owl/css/owl.video.play.png4.86KB2.74KB▼ 43.61%