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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 34.88 ▼5.79 |
Dashboard /wp-admin | 3.67 ▲0.37 | 47.73 ▲0.05 |
Posts /wp-admin/edit.php | 3.78 ▲0.43 | 48.02 ▼0.00 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.37 | 86.25 ▼5.54 |
Media Library /wp-admin/upload.php | 3.59 ▲0.37 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲44 | 13.26 ▼0.97 | 1.97 ▲0.12 | 40.44 ▼5.53 |
Dashboard /wp-admin | 2,209 ▲21 | 4.82 ▼0.08 | 106.95 ▲3.55 | 40.42 ▼5.33 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.03 | 38.69 ▼3.07 | 34.26 ▼1.51 |
Add New Post /wp-admin/post-new.php | 1,537 ▼0 | 23.20 ▲4.90 | 614.78 ▼17.59 | 49.39 ▼0.03 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.25 ▼0.01 | 92.47 ▼6.68 | 41.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 113 | 760 | 1,637 | 9,056 |
CSS | 4 | 4 | 4 | 405 |
SVG | 1 | 3 | 0 | 195 |
YAML | 1 | 2 | 0 | 183 |
Markdown | 1 | 26 | 0 | 44 |
HTML | 1 | 0 | 6 | 14 |
JavaScript | 3 | 0 | 2 | 3 |
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 code | 0.38 |
Average class complexity | 10.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 157.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 113 | |
▷ Abstract classes | 33 | 29.20% |
▷ Concrete classes | 80 | 70.80% |
▷ Final classes | 4 | 5.00% |
Methods | 748 | |
▷ Static methods | 162 | 21.66% |
▷ Public methods | 348 | 46.52% |
▷ Protected methods | 200 | 26.74% |
▷ Private methods | 200 | 26.74% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 25 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 25 | 100.00% |
▷ Public constants | 25 | 100.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