84% wp-github

Code Review | WP Github

WordPress plugin WP Github scored84%from 54 tests.

About plugin

  • Plugin page: wp-github
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Mar 18, 2014
  • Latest release: Jul 21, 2016
  • Number of updates: 14
  • Update frequency: every 61.1 days
  • Top authors: seinoxygen (85.71%)moabi (21.43%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /5,765 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.30MB] [CPU: ▼8.86ms] Passed 4 tests

Server-side resources used by WP Github
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3037.73 ▼2.26
Dashboard /wp-admin3.65 ▲0.3149.95 ▼11.44
Posts /wp-admin/edit.php3.70 ▲0.3545.25 ▼3.70
Add New Post /wp-admin/post-new.php6.17 ▲0.2989.51 ▼18.02
Media Library /wp-admin/upload.php3.51 ▲0.2942.80 ▲10.42
WP Github /wp-admin/options-general.php?page=wp-github3.5333.92

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 11 new options
New WordPress options
widget_widget_commits
widget_widget_gists
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_widget_profile
widget_recent-comments
widget_widget_issues
can_compress_scripts
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

Checking browser requirements for WP Github
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.51 ▼0.141.72 ▲0.0940.27 ▲0.55
Dashboard /wp-admin2,210 ▲274.88 ▼0.0898.84 ▼15.1935.21 ▼8.68
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0133.91 ▼6.8833.47 ▼3.43
Add New Post /wp-admin/post-new.php1,517 ▼2117.81 ▼5.38635.83 ▲36.6449.32 ▼4.87
Media Library /wp-admin/upload.php1,395 ▲74.19 ▼0.0496.60 ▲1.3944.70 ▲2.33
WP Github /wp-admin/options-general.php?page=wp-github1,1052.0522.5331.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 11 options
    • widget_widget_issues
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_widget_gists
    • widget_widget_commits
    • widget_widget_profile
    • widget_theysaidso_widget
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-github/admin/options.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-github/inc/shortcodes.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-github/inc/widgets.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-github/admin/shortcode-btn.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-github/inc/shortcodes.php:44

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: shortcode, github, commits, repositories, issues...

wp-github/wp-github.php Passed 13 tests

The main PHP file in "WP Github" ver. 1.3.3 adds more information about the plugin and also serves as the entry point for this plugin
68 characters long description:
Display users Github public repositories, commits, issues and gists.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,355 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP72853911,303
CSS46339499
SVG100255
PO File15355133
Markdown1190103
JavaScript26462

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity13.86
▷ Minimum class complexity4.00
▷ Maximum class complexity53.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods60
▷ Static methods00.00%
▷ Public methods4473.33%
▷ Protected methods00.00%
▷ Private methods1626.67%
Functions27
▷ Named functions27100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/cat6.png14.58KB0.58KB▼ 96.05%