79% dynamic-elementor-addons

Code Review | Dynamic Elementor Addons

WordPress plugin Dynamic Elementor Addons scored79%from 54 tests.

About plugin

  • Plugin page: dynamic-elementor...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: Jul 31, 2019
  • Latest release: Jul 31, 2019
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: ramjon27 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /794 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Dynamic Elementor Addons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.80 ▼1.96
Dashboard /wp-admin3.32 ▼0.0344.81 ▼17.91
Posts /wp-admin/edit.php3.37 ▲0.0148.54 ▼3.07
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.77 ▼12.32
Media Library /wp-admin/upload.php3.24 ▲0.0135.03 ▲3.43

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Dynamic Elementor Addons: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲5113.22 ▼1.371.73 ▼0.3142.14 ▼1.38
Dashboard /wp-admin2,228 ▲374.90 ▼0.96108.87 ▼7.9242.43 ▼1.65
Posts /wp-admin/edit.php2,110 ▲242.03 ▲0.0341.67 ▲6.1435.85 ▲0.35
Add New Post /wp-admin/post-new.php1,540 ▲2618.12 ▲0.48622.98 ▼58.6855.69 ▲2.72
Media Library /wp-admin/upload.php1,404 ▲194.17 ▼0.05105.06 ▲10.0441.57 ▼4.75

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

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 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/dynamic-elementor-addons/public/partials/dynamic-elementor-addons-public-display.php
    • > /wp-content/plugins/dynamic-elementor-addons/admin/partials/dynamic-elementor-addons-admin-display.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_post_thumbnail() in wp-content/plugins/dynamic-elementor-addons/widgets/dae-templates/default-page-post.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function DynamicElementorAddons\\add_action() in wp-content/plugins/dynamic-elementor-addons/widgets/class-dynamic-elementor-addons-widget.php:68
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_post_thumbnail() in wp-content/plugins/dynamic-elementor-addons/widgets/dae-templates/default-post.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: dynamic post, widget, elementor

dynamic-elementor-addons/dynamic-elementor-addons.php Passed 13 tests

The principal PHP file in "Dynamic Elementor Addons" v. 1.0.0 is loaded by WordPress automatically on each request
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

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
There were no executable files found in this plugin642 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP17214726636
JavaScript24546
CSS2080

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods43
▷ Static methods36.98%
▷ Public methods3479.07%
▷ Protected methods49.30%
▷ Private methods511.63%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin