84% embed-extended

Code Review | Embed Extended – Embed Maps, Videos, Websites, Source Codes, and more

WordPress plugin Embed Extended – Embed Maps, Videos, Websites, Source Codes, and more scored84%from 54 tests.

About plugin

  • Plugin page: embed-extended
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Feb 19, 2020
  • Latest release: Oct 23, 2023
  • Number of updates: 14
  • Update frequency: every 95.9 days
  • Top authors: rsusanto (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

600+ active /6,420 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Embed Extended – Embed Maps, Videos, Websites, Source Codes, and more
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.69 ▲4.72
Dashboard /wp-admin3.33 ▲0.0247.93 ▼1.35
Posts /wp-admin/edit.php3.38 ▲0.0243.37 ▼8.03
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.41 ▼8.11
Media Library /wp-admin/upload.php3.25 ▲0.0239.14 ▲7.08
Embed Extended /wp-admin/options-general.php?page=embed-extended3.3136.30

Server storage [IO: ▲0.22MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

A check of browser resources used by Embed Extended – Embed Maps, Videos, Websites, Source Codes, and more
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.36 ▲0.011.80 ▲0.1142.33 ▲4.99
Dashboard /wp-admin2,227 ▲495.66 ▼0.0388.16 ▼11.8841.97 ▼2.17
Posts /wp-admin/edit.php2,133 ▲332.01 ▲0.0236.88 ▼1.4238.24 ▲3.38
Add New Post /wp-admin/post-new.php1,563 ▲3722.93 ▼0.19668.34 ▼1.8459.61 ▲6.80
Media Library /wp-admin/upload.php1,432 ▲294.28 ▲0.06109.02 ▲11.0047.35 ▲3.95
Embed Extended /wp-admin/options-general.php?page=embed-extended9931.8429.3638.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/embed-extended/templates/embed-iframe-content.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/embed-extended/templates/admin-settings-auth.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/embed-extended/templates/embed-iframe.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/embed-extended/templates/admin-settings-general.php:7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/embed-extended/templates/embed-iframe.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/embed-extended/templates/admin-settings-debug.php:1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/embed-extended/templates/admin-settings-general.php on line 3
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/embed-extended/templates/embed-iframe.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/embed-extended/embed-extended.php:43
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/embed-extended/templates/admin-settings-auth.php on line 3

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

embed-extended/embed-extended.php 92% from 13 tests

Analyzing the main PHP file in "Embed Extended – Embed Maps, Videos, Websites, Source Codes, and more" version 1.4.0
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 169 characters long)

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
Success! There were no dangerous files found in this plugin2,909 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP133176831,426
JavaScript41781,372
Sass1205109
CSS2002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity23.50
▷ Minimum class complexity4.00
▷ Maximum class complexity62.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes233.33%
Methods64
▷ Static methods34.69%
▷ Public methods3351.56%
▷ Protected methods00.00%
▷ Private methods3148.44%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin