84% dot-embed

Code Review | Dot Embed

WordPress plugin Dot Embed scored84%from 54 tests.

About plugin

  • Plugin page: dot-embed
  • Plugin version: 3.2.16
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 21, 2016
  • Latest release: May 12, 2022
  • Number of updates: 98
  • Update frequency: every 22.9 days
  • Top authors: morunas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,843 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 gracefully, with no errors

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

Analyzing server-side resources used by Dot Embed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.56 ▼0.88
Dashboard /wp-admin3.32 ▲0.0250.32 ▼2.36
Posts /wp-admin/edit.php3.37 ▲0.0148.21 ▼3.43
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.40 ▼4.12
Media Library /wp-admin/upload.php3.24 ▲0.0137.37 ▼0.68
Dot Embed /wp-admin/options-general.php?page=dot-embed-settings3.2133.37

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Dot Embed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲7814.79 ▲0.182.22 ▲0.5038.49 ▼2.85
Dashboard /wp-admin2,209 ▲325.69 ▲0.1890.86 ▲1.6343.12 ▲1.66
Posts /wp-admin/edit.php2,111 ▲112.05 ▲0.0540.94 ▲4.4738.94 ▲3.19
Add New Post /wp-admin/post-new.php1,544 ▲318.18 ▼5.07648.75 ▲37.5985.04 ▲32.63
Media Library /wp-admin/upload.php1,411 ▲114.20 ▲0.0096.93 ▼7.9742.86 ▲0.52
Dot Embed /wp-admin/options-general.php?page=dot-embed-settings8052.2025.5827.65

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dot-embed/dot-embed-settings.php:116
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dot-embed/dot-embed-settings.php:116

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 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (20 tag instead of maximum 10)
Please take inspiration from this readme.txt

dot-embed/dot-embed.php Passed 13 tests

Analyzing the main PHP file in "Dot Embed" version 3.2.16
62 characters long description:
Embed Dot pages and apps by copying and pasting the short code

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin239 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP246106235
JavaScript20334

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin