Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.60ms] Passed 4 tests
Server-side resources used by Show Your GitHub Activities
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 39.82 ▲0.86 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.30 ▲1.16 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.74 ▲4.47 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.38 ▼7.13 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.19 ▼1.30 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_show_your_github_activities |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Show Your GitHub Activities
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.17 ▼0.46 | 1.76 ▼0.00 | 46.26 ▲2.16 |
Dashboard /wp-admin | 2,195 ▲15 | 5.56 ▼0.08 | 83.60 ▼3.73 | 40.12 ▼2.11 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.04 | 34.51 ▼4.10 | 32.05 ▼1.19 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.92 ▲0.36 | 669.68 ▲6.15 | 64.03 ▲8.30 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▲0.03 | 94.39 ▼7.12 | 42.53 ▼5.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_show_your_github_activities
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/show-your-github-activities/view.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/show-your-github-activities/option.php:20
- > PHP Notice
Undefined variable: username in wp-content/plugins/show-your-github-activities/view.php on line 2
- > PHP Notice
Undefined variable: height in wp-content/plugins/show-your-github-activities/view.php on line 1
- > PHP Notice
Undefined variable: width in wp-content/plugins/show-your-github-activities/view.php on line 1
- > PHP Notice
Undefined variable: width in wp-content/plugins/show-your-github-activities/view.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/show-your-github-activities/plugin.php:12
- > PHP Notice
Undefined variable: height in wp-content/plugins/show-your-github-activities/view.php on line 2
- > PHP Notice
Undefined variable: margin_bottom in wp-content/plugins/show-your-github-activities/view.php on line 1
- > PHP Fatal error
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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (example) image missing
- Donate link: Invalid url: ""
show-your-github-activities/plugin.php 92% from 13 tests
Analyzing the main PHP file in "Show Your GitHub Activities" version 0.0.6
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("show-your-github-activities.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected100 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 6 | 9 | 100 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 8.14KB | 3.41KB | ▼ 58.13% |