83% embed-github

Code Review | Embed Github

WordPress plugin Embed Github scored83%from 54 tests.

About plugin

  • Plugin page: embed-github
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 6, 2023
  • Latest release: Nov 9, 2023
  • Number of updates: 33
  • Update frequency: every 5.7 days
  • Top authors: btechnologies (93.94%)abuhayat (9.09%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /702 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
Install script ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼0.48ms] Passed 4 tests

Analyzing server-side resources used by Embed Github
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1640.82 ▲0.99
Dashboard /wp-admin3.47 ▲0.1646.26 ▼3.93
Posts /wp-admin/edit.php3.58 ▲0.2350.16 ▲2.51
Add New Post /wp-admin/post-new.php6.08 ▲0.1993.22 ▼0.97
Media Library /wp-admin/upload.php3.39 ▲0.1637.18 ▲1.99
Embed Github /wp-admin/admin.php?page=embed-github3.3534.87

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 7 new options
New WordPress options
ghbpro-redirect
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Embed Github
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3114.38 ▲0.041.85 ▼0.0743.95 ▼4.65
Dashboard /wp-admin2,201 ▲215.62 ▼0.0191.56 ▼11.5840.65 ▼5.38
Posts /wp-admin/edit.php2,103 ▲31.96 ▼0.0339.65 ▲2.2238.19 ▲2.58
Add New Post /wp-admin/post-new.php6,373 ▲4,84729.36 ▲5.74886.92 ▲196.3837.39 ▼33.27
Media Library /wp-admin/upload.php1,406 ▲94.14 ▼0.0798.95 ▲0.5041.09 ▼2.92
Embed Github /wp-admin/admin.php?page=embed-github7982.3556.0930.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • ghbpro-redirect
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'BSDK' not found in wp-content/plugins/embed-github/bplugins_sdk/inc/Base/License.php:3
    • > PHP Warning
      Use of undefined constant GHB_PLUGIN_VERSION - assumed 'GHB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/embed-github/dist/editor.asset.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'BSDK' not found in wp-content/plugins/embed-github/bplugins_sdk/inc/Base/Activate.php:3

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Requires at least: Invalid plugin version format
You can look at the official readme.txt

embed-github/index.php 85% from 13 tests

"Embed Github" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("embed-github.php" instead of "index.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
No dangerous file extensions were detected1,587 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP1011037510
JavaScript157128477
JSON400302
Sass3115184
PO File23990109
CSS5085

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity9.17
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods40
▷ Static methods37.50%
▷ Public methods3895.00%
▷ Protected methods00.00%
▷ Private methods25.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
bplugins_sdk/dist/assets/images/shield_success.png3.47KB3.61KB0.00%