10% wp-github-buttons

Code Review | WP GitHub Buttons

WordPress plugin WP GitHub Buttons scored 10% from 54 tests.

About plugin

  • Plugin page: wp-github-buttons
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 1, 2015
  • Latest release: Mar 1, 2015
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: miunosoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 868 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-github-buttons/include/library/admin-page-framework/factory/AdminPageFramework_Factory/utility/AdminPageFramework_Utility/AdminPageFramework_Utility_URL.php+15
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▲0.37MB] [CPU: ▼2.82ms] Passed 4 tests

This is a short check of server-side resources used by WP GitHub Buttons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3734.88 ▼5.79
Dashboard /wp-admin3.67 ▲0.3747.73 ▲0.05
Posts /wp-admin/edit.php3.78 ▲0.4348.02 ▼0.00
Add New Post /wp-admin/post-new.php6.25 ▲0.3786.25 ▼5.54
Media Library /wp-admin/upload.php3.59 ▲0.3734.40 ▲0.89

Server storage [IO: ▲0.83MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for WP GitHub Buttons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4413.26 ▼0.971.97 ▲0.1240.44 ▼5.53
Dashboard /wp-admin2,209 ▲214.82 ▼0.08106.95 ▲3.5540.42 ▼5.33
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0338.69 ▼3.0734.26 ▼1.51
Add New Post /wp-admin/post-new.php1,537 ▼023.20 ▲4.90614.78 ▼17.5949.39 ▼0.03
Media Library /wp-admin/upload.php1,388 ▲64.25 ▼0.0192.47 ▼6.6841.32 ▼2.99

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

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

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
Even though no errors were found, this is by no means an exhaustive test

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
  • 89× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WPGitHubButtons_AdminPageFramework_Script_Base' not found in wp-content/plugins/wp-github-buttons/include/library/admin-page-framework/factory/AdminPageFramework_Factory/view/AdminPageFramework_Script/AdminPageFramework_Script_RegisterCallback.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Category' not found in wp-content/plugins/wp-github-buttons/include/library/admin-page-framework/factory/AdminPageFramework_Factory/view/AdminPageFramework_FieldType/AdminPageFramework_WalkerTaxonomyChecklist.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPGitHubButtons_AdminPageFramework_Widget_Controller' not found in wp-content/plugins/wp-github-buttons/include/library/admin-page-framework/factory/AdminPageFramework_Widget/AdminPageFramework_Widget.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPGitHubButtons_AdminPageFramework_Utility_URL' not found in wp-content/plugins/wp-github-buttons/include/library/admin-page-framework/factory/AdminPageFramework_Factory/utility/AdminPageFramework_Utility/AdminPageFramework_Utility_File.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPGitHubButtons_AdminPageFramework_Factory_Controller' not found in wp-content/plugins/wp-github-buttons/include/library/admin-page-framework/factory/AdminPageFramework_Factory/AdminPageFramework_Factory.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPGitHubButtons_AdminPageFramework_FieldType_checkbox' not found in wp-content/plugins/wp-github-buttons/include/library/admin-page-framework/factory/AdminPageFramework_Factory/view/AdminPageFramework_FieldType/AdminPageFramework_FieldType_posttype.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPGitHubButtons_AdminPageFramework_FormElement_Base' not found in wp-content/plugins/wp-github-buttons/include/library/admin-page-framework/factory/AdminPageFramework_Factory/model/AdminPageFramework_FormElement/AdminPageFramework_FormElement.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPGitHubButtons_AdminPageFramework_Script_Base' not found in wp-content/plugins/wp-github-buttons/include/library/admin-page-framework/factory/AdminPageFramework_Factory/view/AdminPageFramework_Script/AdminPageFramework_Script_Tab.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPGitHubButtons_AdminPageFramework_FieldType' not found in wp-content/plugins/wp-github-buttons/include/library/admin-page-framework/factory/AdminPageFramework_Factory/view/AdminPageFramework_FieldType/AdminPageFramework_FieldType_system.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPGitHubButtons_AdminPageFramework_Utility_SystemInformation' not found in wp-content/plugins/wp-github-buttons/include/library/admin-page-framework/factory/AdminPageFramework_Factory/utility/AdminPageFramework_Utility/AdminPageFramework_Utility.php:8

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: shortcode, icon, button, icons, github...

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

The principal PHP file in "WP GitHub Buttons" v. 1.0.0 is loaded by WordPress automatically on each request
24 characters long description:
Displays GitHub buttons.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin9,900 lines of code in 124 files:
LanguageFilesBlank linesComment linesLines of code
PHP1137601,6379,056
CSS444405
SVG130195
YAML120183
Markdown126044
HTML10614
JavaScript3023

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity10.46
▷ Minimum class complexity1.00
▷ Maximum class complexity157.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes113
▷ Abstract classes3329.20%
▷ Concrete classes8070.80%
▷ Final classes45.00%
Methods748
▷ Static methods16221.66%
▷ Public methods34846.52%
▷ Protected methods20026.74%
▷ Private methods20026.74%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants25
▷ Global constants00.00%
▷ Class constants25100.00%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin