78% glomex-oembed

Code Review | glomex oEmbed

WordPress plugin glomex oEmbed scored78%from 54 tests.

About plugin

  • Plugin page: glomex-oembed
  • Plugin version: 0.8.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 13, 2023
  • Latest release: Mar 13, 2023
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: glomex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /225 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
This plugin's installer ran successfully

Server metrics [RAM: ▲1.13MB] [CPU: ▲2.17ms] Passed 4 tests

Server-side resources used by glomex oEmbed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.47 ▲1.0060.44 ▲12.26
Dashboard /wp-admin4.48 ▲1.1765.29 ▲11.07
Posts /wp-admin/edit.php4.59 ▲1.2358.72 ▲3.74
Add New Post /wp-admin/post-new.php7.08 ▲1.1990.67 ▼18.38
Media Library /wp-admin/upload.php4.40 ▲1.1752.19 ▲17.55

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 715 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for glomex oEmbed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲3114.35 ▼0.212.14 ▼0.1042.64 ▼3.26
Dashboard /wp-admin2,220 ▲435.70 ▼0.0687.29 ▼17.4139.47 ▼3.60
Posts /wp-admin/edit.php2,088 ▼152.10 ▲0.1634.98 ▼0.9834.51 ▼1.78
Add New Post /wp-admin/post-new.php1,565 ▲3023.49 ▲5.35660.46 ▼31.8037.74 ▼32.26
Media Library /wp-admin/upload.php1,435 ▲384.25 ▲0.12102.16 ▼0.8446.76 ▼2.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/glomex-oembed/vendor-prod/wpdesk/wp-builder/tests/integration/bootstrap.php
    • > /wp-content/plugins/glomex-oembed/glomex-oembed.php
    • > /wp-content/plugins/glomex-oembed/vendor-prod/wpdesk/wp-notice/tests/integration/bootstrap.php
    • > /wp-content/plugins/glomex-oembed/vendor-prod/micropackage/requirements/tests/bootstrap.php
  • 217× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/glomex-oembed/vendor-prod/composer/installers/src/Composer/Installers/Plugin.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/glomex-oembed/vendor-prod/composer/installers/src/Composer/Installers/ShopwareInstaller.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/glomex-oembed/vendor-prod/composer/installers/src/Composer/Installers/HuradInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/glomex-oembed/vendor-prod/composer/installers/src/Composer/Installers/KnownInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/glomex-oembed/vendor-prod/cmb2/includes/types/CMB2_Type_File_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/glomex-oembed/vendor-prod/composer/installers/src/Composer/Installers/RadPHPInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'glomex_oEmbed\\Engine\\Base' not found in wp-content/plugins/glomex-oembed/backend/ImpExp.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/glomex-oembed/vendor-prod/cmb2/includes/CMB2_Hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/glomex-oembed/vendor-prod/composer/installers/src/Composer/Installers/ImageCMSInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/glomex-oembed/vendor-prod/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% 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 require attention:
  • Contributors: Plugin contributors field is missing
You can take inspiration from this readme.txt

glomex-oembed/glomex-oembed.php 85% from 13 tests

Analyzing the main PHP file in "glomex oEmbed" version 0.8.5
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Git Repository: There should be no Git repositories present in your plugin

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
Good job! No executable or dangerous file extensions detected66,486 lines of code in 524 files:
LanguageFilesBlank linesComment linesLines of code
PO File12114,32418,51332,369
PHP3034,62311,26116,232
JSON17008,105
CSS152571,1914,607
JavaScript153695901,582
Markdown1846701,519
Sass20318351,469
YAML6523300
XML8253183
Bourne Shell12111120

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity8.15
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces28
Interfaces18
Traits5
Classes259
▷ Abstract classes166.18%
▷ Concrete classes24393.82%
▷ Final classes20.82%
Methods1,196
▷ Static methods13611.37%
▷ Public methods99383.03%
▷ Protected methods14812.37%
▷ Private methods554.60%
Functions96
▷ Named functions6466.67%
▷ Anonymous functions3233.33%
Constants89
▷ Global constants2426.97%
▷ Class constants6573.03%
▷ Public constants6295.38%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor-prod/cmb2/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
vendor-prod/cmb2/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
vendor-prod/cmb2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
vendor-prod/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
vendor-prod/cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%