84% wp-git-embed

Code Review | WP-Git-Embed

WordPress plugin WP-Git-Embed scored84%from 54 tests.

About plugin

  • Plugin page: wp-git-embed
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Feb 15, 2013
  • Latest release: Apr 4, 2013
  • Number of updates: 11
  • Update frequency: every 4.4 days
  • Top authors: gbaptistas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,579 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by WP-Git-Embed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.06 ▼4.41
Dashboard /wp-admin3.34 ▲0.0452.05 ▼2.01
Posts /wp-admin/edit.php3.39 ▲0.0349.21 ▼5.57
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.55 ▼19.20
Media Library /wp-admin/upload.php3.26 ▲0.0336.97 ▼0.45

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WP-Git-Embed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.21 ▼0.141.68 ▲0.0944.20 ▲1.03
Dashboard /wp-admin2,195 ▲215.57 ▼0.0084.10 ▼23.8239.30 ▼8.34
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0239.33 ▲3.9836.32 ▼1.65
Add New Post /wp-admin/post-new.php1,526 ▼023.05 ▲0.05666.36 ▼14.6962.62 ▼2.58
Media Library /wp-admin/upload.php1,403 ▲34.16 ▼0.0198.02 ▼10.6646.50 ▲3.85

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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 fix the following
  • 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/wp-git-embed/wp-git-embed.php:207

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

wp-git-embed/wp-git-embed.php Passed 13 tests

The main PHP script in "WP-Git-Embed" version 0.4 is automatically included on every request by WordPress
38 characters long description:
Embed GitHub, Gist or Bitbucket files.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected141 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14820141

PHP code Passed 2 tests

This is a very shot review of 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.42
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity9.00
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods375.00%
▷ Public methods250.00%
▷ Protected methods00.00%
▷ Private methods250.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin