Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼0.18ms] Passed 4 tests
A check of server-side resources used by My Github
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 43.04 ▲2.48 |
Dashboard /wp-admin | 3.38 ▲0.07 | 54.92 ▲6.74 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 53.95 ▼2.25 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 97.02 ▼7.69 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 38.54 ▲7.53 |
My GitHub /wp-admin/options-general.php?page=my-github | 3.28 | 36.30 |
Server storage [IO: ▲3.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: no new tables, 9 new options
New WordPress options |
---|
_my_github_installed |
_my_github_version |
widget_recent-comments |
widget_my-github |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for My Github
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 13.18 ▼1.21 | 1.82 ▲0.10 | 42.42 ▼2.34 |
Dashboard /wp-admin | 2,210 ▲22 | 6.01 ▲0.11 | 97.49 ▼20.90 | 39.38 ▼3.32 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▲0.05 | 39.00 ▼7.86 | 35.52 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.45 ▼4.79 | 595.32 ▼9.83 | 56.10 ▲6.76 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.24 ▲0.06 | 98.06 ▼2.27 | 40.95 ▼4.06 |
My GitHub /wp-admin/options-general.php?page=my-github | 880 | 2.06 | 21.66 | 28.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-posts
- db_upgraded
- _my_github_version
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- _my_github_installed
- widget_theysaidso_widget
- widget_my-github
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)
Good news, no errors were detected
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
The following issues need your attention
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/my-github/includes/templates/my_github_settings.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/my-github/includes/Frontend/Widget.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/my-github/includes/templates/my_github_widget.php:6
- > PHP Notice
Undefined variable: show_avatar in wp-content/plugins/my-github/includes/templates/my_github_widget.php on line 2
- > PHP Warning
require_once(wp-content/plugins/my-github/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/my-github/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/my-github/includes/templates/my_github_profile.php:18
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/my-github/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/my-github/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (GitHub Profile), #2 (GitHub Widget Setup), #3 (GitHub Widget Profile View)
my-github/my-github.php Passed 13 tests
The main file in "My Github" v. 1.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
72 characters long description:
A simple and nice WordPress plugin that can track your github's profile.
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
There were no executable files found in this plugin16,795 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 0 | 9,555 |
CSS | 5 | 1,509 | 16 | 3,251 |
PHP | 28 | 655 | 1,407 | 3,210 |
Markdown | 6 | 124 | 0 | 383 |
JSON | 3 | 0 | 0 | 135 |
XML | 2 | 7 | 21 | 113 |
PO File | 1 | 28 | 32 | 66 |
YAML | 2 | 12 | 0 | 64 |
JavaScript | 2 | 1 | 5 | 18 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 23.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 1 | 6.25% |
Methods | 165 | |
▷ Static methods | 24 | 14.55% |
▷ Public methods | 129 | 78.18% |
▷ Protected methods | 6 | 3.64% |
▷ Private methods | 30 | 18.18% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected