84% document-embedder-addons-for-elementor

Code Review | Document Embedder Addon For Elementor

WordPress plugin Document Embedder Addon For Elementor scored 84% from 54 tests.

About plugin

  • Plugin page: document-embedder...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 8, 2021
  • Latest release: Sep 11, 2023
  • Number of updates: 28
  • Update frequency: every 29.5 days
  • Top authors: shehabulislam (57.14%)abuhayat (39.29%)russell010 (10.71%)

Code review

54 tests

User reviews

5 reviews

Install metrics

4,000+ active / 13,936 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.25ms] Passed 4 tests

A check of server-side resources used by Document Embedder Addon For Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.87 ▲4.18
Dashboard /wp-admin3.33 ▲0.0253.72 ▼0.49
Posts /wp-admin/edit.php3.38 ▲0.0250.77 ▼24.96
Add New Post /wp-admin/post-new.php5.91 ▲0.02102.44 ▼3.10
Media Library /wp-admin/upload.php3.26 ▲0.0241.24 ▼0.43

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Document Embedder Addon For Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲3014.78 ▲1.581.70 ▼4.4148.96 ▲7.02
Dashboard /wp-admin2,228 ▲194.85 ▲0.02103.72 ▼10.0642.09 ▼2.86
Posts /wp-admin/edit.php2,107 ▲212.04 ▲0.0437.09 ▼0.5334.07 ▼0.02
Add New Post /wp-admin/post-new.php1,547 ▲1423.26 ▲0.14782.55 ▲136.3157.15 ▲9.12
Media Library /wp-admin/upload.php1,407 ▲164.24 ▼0.01107.69 ▲6.4044.86 ▼0.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/document-embedder-addons-for-elementor/enable-mime-type.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function BAddon\\add_action() in wp-content/plugins/document-embedder-addons-for-elementor/plugin.php:142

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed: Please take inspiration from this readme.txt

document-embedder-addons-for-elementor/document-embedder-addons-for-elementor.php 92% from 13 tests

The entry point to "Document Embedder Addon For Elementor" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,529 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP142651772,441
CSS24171
JavaScript11017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.83
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes18.33%
Methods75
▷ Static methods11.33%
▷ Public methods5472.00%
▷ Protected methods2026.67%
▷ Private methods11.33%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
PNG images were not found in this plugin