84% oembed-gist

Code Review | oEmbed Gist

WordPress plugin oEmbed Gist scored84%from 54 tests.

About plugin

  • Plugin page: oembed-gist
  • Plugin version: 4.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9
  • WordPress version: 6.3.1
  • First release: Apr 28, 2011
  • Latest release: Mar 30, 2018
  • Number of updates: 38
  • Update frequency: every 66.5 days
  • Top authors: miyauchi (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

1,000+ active /49,375 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.01ms] Passed 4 tests

A check of server-side resources used by oEmbed Gist
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.19 ▼15.45
Dashboard /wp-admin3.33 ▲0.0251.20 ▼0.14
Posts /wp-admin/edit.php3.38 ▲0.0247.76 ▼2.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.26 ▼13.02
Media Library /wp-admin/upload.php3.25 ▲0.0236.49 ▼1.17

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by oEmbed Gist
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.36 ▼0.011.76 ▼0.4844.90 ▲4.24
Dashboard /wp-admin2,192 ▲155.61 ▲0.0190.13 ▼38.2043.03 ▼17.76
Posts /wp-admin/edit.php2,103 ▲62.00 ▲0.0134.08 ▼0.7032.57 ▼4.84
Add New Post /wp-admin/post-new.php1,526 ▼223.70 ▲0.65695.52 ▲66.1751.72 ▼9.94
Media Library /wp-admin/upload.php1,397 ▼04.21 ▲0.0098.43 ▼6.8344.23 ▼6.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oembed-gist/oembed-gist.php:24

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

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: These screenshots lack descriptions #2, #3 in oembed-gist/assets to your readme.txt
Please take inspiration from this readme.txt

oembed-gist/oembed-gist.php Passed 13 tests

The main PHP script in "oEmbed Gist" version 4.9.1 is automatically included on every request by WordPress
30 characters long description:
Embed source from gist.github.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected4,575 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JSON1004,363
PHP12511112
PO File241235
CSS20026
JavaScript26026
Markdown14013

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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