84% embed-githubin

Code Review | embed-githubin

WordPress plugin embed-githubin scored84%from 54 tests.

About plugin

  • Plugin page: embed-githubin
  • Plugin version: 1.13
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 5, 2019
  • Latest release: Dec 8, 2022
  • Number of updates: 15
  • Update frequency: every 85.4 days
  • Top authors: lrdb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /720 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.68ms] Passed 4 tests

A check of server-side resources used by embed-githubin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.35 ▼2.12
Dashboard /wp-admin3.35 ▲0.0546.08 ▼1.65
Posts /wp-admin/edit.php3.40 ▲0.0448.38 ▲1.90
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.39 ▼1.36
Media Library /wp-admin/upload.php3.27 ▲0.0434.57 ▼1.59

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

embed-githubin: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.21 ▼1.181.84 ▲0.0145.23 ▼1.55
Dashboard /wp-admin2,212 ▲245.80 ▲0.9095.63 ▼9.8039.74 ▼2.56
Posts /wp-admin/edit.php2,086 ▼32.01 ▲0.0039.35 ▲3.3234.59 ▼0.86
Add New Post /wp-admin/post-new.php1,540 ▲323.08 ▼0.31607.74 ▼74.2762.75 ▼3.66
Media Library /wp-admin/upload.php1,382 ▲34.31 ▲0.1395.59 ▼4.9141.98 ▼0.94

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/embed-githubin/githubin.php:328

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: github, github embed, embed

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

The main PHP script in "embed-githubin" version 1.13 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("embed-githubin.php" instead of "githubin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin294 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14965294

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.64
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin