84% go-embed

Code Review | GoEmbed - Javascript Application Embedded

WordPress plugin GoEmbed - Javascript Application Embedded scored84%from 54 tests.

About plugin

  • Plugin page: go-embed
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 29, 2023
  • Latest release: Mar 29, 2023
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: delightincode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /310 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.17ms] Passed 4 tests

This is a short check of server-side resources used by GoEmbed - Javascript Application Embedded
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.89 ▼2.01
Dashboard /wp-admin3.34 ▲0.0450.75 ▲0.06
Posts /wp-admin/edit.php3.40 ▲0.0450.46 ▼1.04
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.32 ▼9.67
Media Library /wp-admin/upload.php3.27 ▲0.0440.50 ▲8.04

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

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

Browser metrics Passed 4 tests

GoEmbed - Javascript Application Embedded: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲5214.36 ▼0.412.25 ▲0.1743.72 ▼1.69
Dashboard /wp-admin2,243 ▲635.76 ▲0.1397.61 ▲0.9633.05 ▼10.71
Posts /wp-admin/edit.php2,152 ▲522.04 ▲0.0437.98 ▼5.3329.86 ▼11.18
Add New Post /wp-admin/post-new.php6,424 ▲4,89828.03 ▲4.85958.05 ▲264.1670.83 ▲2.09
Media Library /wp-admin/upload.php1,450 ▲504.32 ▲0.07112.83 ▲5.8240.54 ▼5.46

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/go-embed/define.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: build, react, integrated, javascript, vuejs

go-embed/go-embed.php 85% from 13 tests

The main PHP file in "GoEmbed - Javascript Application Embedded" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin30,164 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
JSON30029,670
PHP72565177
JavaScript81219156
CSS46078
Markdown132038
SVG20125
HTML132020

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
apps/my-app/public/logo512.png9.44KB10.35KB0.00%
apps/my-app/public/logo192.png5.22KB5.57KB0.00%