Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼6.95ms] Passed 4 tests
A check of server-side resources used by GitHub API
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 42.35 ▼2.19 |
Dashboard /wp-admin | 3.52 ▲0.17 | 55.16 ▼17.71 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 51.46 ▼4.85 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 97.74 ▼3.03 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 41.04 ▲3.87 |
GitHub API /wp-admin/options-general.php?page=wp_github_api | 3.42 | 208.72 |
GitHub API /wp-admin/tools.php?page=wp_github_api_tools | 3.42 | 34.94 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 17 new options
New WordPress options |
---|
wp_github_api_search_reset |
wp_github_api_core_reset |
wp_github_api_authenticated_user |
wp_github_api_core_remaining |
wp_github_api_search_remaining |
wp_github_api_authorize_link |
wp_github_api_authentication_method |
wp_github_api_search_limit |
theysaidso_admin_options |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
GitHub API: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.16 ▼0.22 | 1.86 ▲0.10 | 43.58 ▲4.76 |
Dashboard /wp-admin | 2,203 ▲26 | 5.64 ▲0.10 | 92.83 ▼4.41 | 41.50 ▼0.57 |
Posts /wp-admin/edit.php | 2,108 ▲11 | 2.02 ▲0.02 | 39.88 ▲1.31 | 34.23 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,532 ▲1 | 23.06 ▼0.10 | 642.08 ▼35.52 | 60.41 ▲0.44 |
Media Library /wp-admin/upload.php | 1,408 ▲14 | 4.21 ▼0.03 | 100.20 ▲4.79 | 41.76 ▼2.76 |
GitHub API /wp-admin/options-general.php?page=wp_github_api | 896 | 2.01 | 28.20 | 34.53 |
GitHub API /wp-admin/tools.php?page=wp_github_api_tools | 830 | 2.02 | 24.61 | 28.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 17 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- wp_github_api_authorize_link
- wp_github_api_core_limit
- wp_github_api_client_id
- wp_github_api_search_limit
- can_compress_scripts
- wp_github_api_client_secret
- wp_github_api_authentication_method
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=wp_github_api
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=wp_github_api
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 14× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/github-api/views/setting.php:2
- > PHP Notice
Undefined variable: result in wp-content/plugins/github-api/views/tool_search_repositories.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/github-api/views/tool_weekly_commit_count.php:11
- > PHP Notice
Undefined variable: result in wp-content/plugins/github-api/views/tool_get_repo_info.php on line 3
- > PHP Notice
Undefined variable: result in wp-content/plugins/github-api/views/tool_get_org_info.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/github-api/views/tool.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/github-api/views/tool_get_org_info.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/github-api/github-api.php:31
- > PHP Notice
Undefined variable: result in wp-content/plugins/github-api/views/tool_get_user_info.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/github-api/views/tool_get_user_info.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Screenshot #1 (Tool as an example to render weekly commit count into a bar chart) image not found
- Screenshots: Please add descriptions for these screenshots #2, #3, #4 in github-api/assets to your readme.txt
github-api/github-api.php 92% from 13 tests
The main PHP script in "GitHub API" version 0.4.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
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
There were no executable files found in this plugin1,378 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 228 | 430 | 1,044 |
Bourne Again Shell | 2 | 41 | 38 | 152 |
Markdown | 3 | 40 | 0 | 83 |
Bourne Shell | 1 | 12 | 6 | 47 |
YAML | 1 | 5 | 0 | 28 |
XML | 1 | 3 | 0 | 24 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 12.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 2 | 3.70% |
▷ Public methods | 49 | 90.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.26% |
Functions | 8 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 8 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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