84% simple-gist-embed

Code Review | Simple Gist Embed

WordPress plugin Simple Gist Embed scored84%from 54 tests.

About plugin

  • Plugin page: simple-gist-embed
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-3.2.1
  • WordPress version: 6.3.1
  • First release: Sep 13, 2011
  • Latest release: Sep 14, 2011
  • Number of updates: 7
  • Update frequency: every 157.6 days
  • Top authors: bainternet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,518 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.64ms] Passed 4 tests

An overview of server-side resources used by Simple Gist Embed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0854.33 ▲11.00
Dashboard /wp-admin3.37 ▲0.0750.06 ▼7.52
Posts /wp-admin/edit.php3.42 ▲0.0749.77 ▲0.14
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.28 ▼20.34
Media Library /wp-admin/upload.php3.30 ▲0.0738.75 ▲1.15

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Simple Gist Embed: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.37 ▲0.391.74 ▼0.3343.52 ▼1.29
Dashboard /wp-admin2,192 ▲185.52 ▼0.0687.00 ▼8.3038.46 ▼2.37
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0241.99 ▲7.9836.53 ▼1.16
Add New Post /wp-admin/post-new.php1,531 ▲523.12 ▼0.14683.15 ▼33.5562.12 ▲7.45
Media Library /wp-admin/upload.php1,400 ▲34.20 ▼0.01131.66 ▲21.5053.52 ▲5.55

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/simple-gist-embed/simple-gist-embed.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: embed gist, github, gist, syntax highlighter, syntax highlight...

simple-gist-embed/simple-gist-embed.php Passed 13 tests

Analyzing the main PHP file in "Simple Gist Embed" version 1.1
34 characters long description:
Embed Gist in your post with ease.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin553 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16056553

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png26.81KB11.61KB▼ 56.69%
screenshot-3.png6.96KB4.19KB▼ 39.72%
screenshot-4.png27.32KB13.78KB▼ 49.54%
screenshot-2.png25.50KB8.83KB▼ 65.39%