78% show-your-github-activities

Code Review | Show Your GitHub Activities

WordPress plugin Show Your GitHub Activities scored78%from 54 tests.

About plugin

  • Plugin page: show-your-github-...
  • Plugin version: 0.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Dec 9, 2012
  • Latest release: Mar 2, 2013
  • Number of updates: 19
  • Update frequency: every 4.4 days
  • Top authors: kyokutyo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,171 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.60ms] Passed 4 tests

Server-side resources used by Show Your GitHub Activities
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.82 ▲0.86
Dashboard /wp-admin3.32 ▲0.0248.30 ▲1.16
Posts /wp-admin/edit.php3.37 ▲0.0147.74 ▲4.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.38 ▼7.13
Media Library /wp-admin/upload.php3.24 ▲0.0133.19 ▼1.30

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Show Your GitHub Activities
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.17 ▼0.461.76 ▼0.0046.26 ▲2.16
Dashboard /wp-admin2,195 ▲155.56 ▼0.0883.60 ▼3.7340.12 ▼2.11
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0434.51 ▼4.1032.05 ▼1.19
Add New Post /wp-admin/post-new.php1,526 ▼323.92 ▲0.36669.68 ▲6.1564.03 ▲8.30
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0394.39 ▼7.1242.53 ▼5.74

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_show_your_github_activities

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/show-your-github-activities/view.php
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/show-your-github-activities/option.php:20
    • > PHP Notice
      Undefined variable: username in wp-content/plugins/show-your-github-activities/view.php on line 2
    • > PHP Notice
      Undefined variable: height in wp-content/plugins/show-your-github-activities/view.php on line 1
    • > PHP Notice
      Undefined variable: width in wp-content/plugins/show-your-github-activities/view.php on line 1
    • > PHP Notice
      Undefined variable: width in wp-content/plugins/show-your-github-activities/view.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/show-your-github-activities/plugin.php:12
    • > PHP Notice
      Undefined variable: height in wp-content/plugins/show-your-github-activities/view.php on line 2
    • > PHP Notice
      Undefined variable: margin_bottom in wp-content/plugins/show-your-github-activities/view.php on line 1

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (example) image missing
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

show-your-github-activities/plugin.php 92% from 13 tests

Analyzing the main PHP file in "Show Your GitHub Activities" version 0.0.6
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("show-your-github-activities.php" instead of "plugin.php")

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
No dangerous file extensions were detected100 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP369100

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png8.14KB3.41KB▼ 58.13%