77% automizy-elementor-integration

Code Review | Automizy / Elementor Integration

WordPress plugin Automizy / Elementor Integrationscored77%from 54 tests.

About plugin

  • Plugin page: automizy-elemento...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 9, 2020
  • Latest release: Aug 13, 2020
  • Number of updates: 9
  • Update frequency: every 4.0 days
  • Top authors: gkoncz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /4,469 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Automizy / Elementor Integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0040.76 ▼1.97
Dashboard /wp-admin3.35 ▼0.0450.63 ▼23.04
Posts /wp-admin/edit.php3.40 ▲0.0049.74 ▼1.96
Add New Post /wp-admin/post-new.php5.93 ▲0.0094.26 ▼4.45
Media Library /wp-admin/upload.php3.27 ▲0.0036.09 ▼2.19
Elementor - Automizy Integration /wp-admin/admin.php?page=automizy-elementor-integration3.0426.50

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Automizy / Elementor Integration: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.72 ▲0.092.00 ▲0.0046.29 ▲4.25
Dashboard /wp-admin2,198 ▲305.61 ▲0.0695.70 ▲3.3241.07 ▲0.25
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0042.19 ▲6.3338.82 ▲0.53
Add New Post /wp-admin/post-new.php1,526 ▼022.98 ▼0.55651.80 ▼38.9754.15 ▲0.72
Media Library /wp-admin/upload.php1,394 ▼64.17 ▲0.0399.18 ▼1.3844.25 ▼2.39
Elementor - Automizy Integration /wp-admin/admin.php?page=automizy-elementor-integration280.420.064.36

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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
Even though everything seems fine, this is not 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 take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/automizy-elementor-integration/app/option-page.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorPro\\Modules\\Forms\\Classes\\Action_Base' not found in wp-content/plugins/automizy-elementor-integration/app/class-action.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=automizy-elementor-integration
    • > Network (severe)
    wp-admin/admin.php?page=automizy-elementor-integration - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is not present
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === Automizy / Elementor Integration=== )
You can look at the official readme.txt

automizy-elementor-integration/elementor-automizy-addon.php 77% from 13 tests

The entry point to "Automizy / Elementor Integration" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("automizy-elementor-integration.php" instead of "elementor-automizy-addon.php")
  • Git Repository: There should be no Git repositories present in your plugin
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected653 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP467164442
JavaScript191119
PO File1141547
CSS20244
SVG1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity18.50
▷ Minimum class complexity8.00
▷ Maximum class complexity29.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin