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 scored 84% from 54 tests.

About plugin

  • Plugin page: embed-extended
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 5.8.1
  • First release: Feb 19, 2020
  • Latest release: Feb 27, 2021
  • Number of updates: 13
  • Update frequency: every 28.8 days
  • Top authors: rsusanto (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

800+ active / 4,407 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.07MB] [CPU: ▼143.06ms] 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 /2.90 ▲0.0637.75 ▲0.53
Dashboard /wp-admin3.14 ▲0.0848.05 ▼1.61
Posts /wp-admin/edit.php3.25 ▲0.1443.25 ▼5.64
Add New Post /wp-admin/post-new.php5.50 ▲0.0692.00 ▼565.21
Media Library /wp-admin/upload.php3.08 ▲0.0837.11 ▲0.22
Embed Extended /wp-admin/options-general.php?page=embed-extended3.1143.99

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 1 new option
New WordPress options
embed_extended_version

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 /3,746 ▲15015.98 ▲0.519.32 ▼0.8547.02 ▼6.74
Dashboard /wp-admin2,997 ▲635.98 ▲0.01145.29 ▼4.58123.25 ▲1.46
Posts /wp-admin/edit.php2,784 ▲452.60 ▼0.0969.22 ▼0.5592.60 ▲6.29
Add New Post /wp-admin/post-new.php1,613 ▼7020.31 ▲2.00380.43 ▼15.27110.64 ▼0.44
Media Library /wp-admin/upload.php1,775 ▼355.08 ▲0.06165.65 ▲2.00131.40 ▲13.86
Embed Extended /wp-admin/options-general.php?page=embed-extended1,3042.4865.3495.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 1 option in the database
    • embed_extended_version

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 Notice
      Undefined variable: data in wp-content/plugins/embed-extended/templates/embed-iframe.php on line 4
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/embed-extended/templates/admin-settings-auth.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/embed-extended/templates/admin-settings-auth.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 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/embed-extended/templates/embed-iframe.php:7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/embed-extended/templates/admin-settings-auth.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/embed-extended/templates/embed-content.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/embed-extended/templates/admin-settings-debug.php:1
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/embed-extended/templates/embed-iframe.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/embed-extended/templates/admin-settings.php:4

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.3.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,782 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41781,372
PHP132856281,299
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.33
Average class complexity19.50
▷ Minimum class complexity4.00
▷ Maximum class complexity43.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes233.33%
Methods59
▷ Static methods35.08%
▷ Public methods3355.93%
▷ Protected methods00.00%
▷ Private methods2644.07%
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