Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.30MB] [CPU: ▼8.86ms] Passed 4 tests
Server-side resources used by WP Github
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 37.73 ▼2.26 |
Dashboard /wp-admin | 3.65 ▲0.31 | 49.95 ▼11.44 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 45.25 ▼3.70 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 89.51 ▼18.02 |
Media Library /wp-admin/upload.php | 3.51 ▲0.29 | 42.80 ▲10.42 |
WP Github /wp-admin/options-general.php?page=wp-github | 3.53 | 33.92 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_widget_commits |
widget_widget_gists |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_widget_profile |
widget_recent-comments |
widget_widget_issues |
can_compress_scripts |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WP Github
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.51 ▼0.14 | 1.72 ▲0.09 | 40.27 ▲0.55 |
Dashboard /wp-admin | 2,210 ▲27 | 4.88 ▼0.08 | 98.84 ▼15.19 | 35.21 ▼8.68 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 33.91 ▼6.88 | 33.47 ▼3.43 |
Add New Post /wp-admin/post-new.php | 1,517 ▼21 | 17.81 ▼5.38 | 635.83 ▲36.64 | 49.32 ▼4.87 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.19 ▼0.04 | 96.60 ▲1.39 | 44.70 ▲2.33 |
WP Github /wp-admin/options-general.php?page=wp-github | 1,105 | 2.05 | 22.53 | 31.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 11 options
- widget_widget_issues
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_widget_gists
- widget_widget_commits
- widget_widget_profile
- widget_theysaidso_widget
- ...
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)
The smoke test was a success, however most plugin functionality was not tested
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 items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-github/admin/options.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-github/inc/shortcodes.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-github/inc/widgets.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-github/admin/shortcode-btn.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-github/inc/shortcodes.php:44
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: shortcode, github, commits, repositories, issues...
wp-github/wp-github.php Passed 13 tests
The main PHP file in "WP Github" ver. 1.3.3 adds more information about the plugin and also serves as the entry point for this plugin
68 characters long description:
Display users Github public repositories, commits, issues and gists.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,355 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 285 | 391 | 1,303 |
CSS | 4 | 63 | 39 | 499 |
SVG | 1 | 0 | 0 | 255 |
PO File | 1 | 53 | 55 | 133 |
Markdown | 1 | 19 | 0 | 103 |
JavaScript | 2 | 6 | 4 | 62 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 13.86 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 73.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 26.67% |
Functions | 27 | |
▷ Named functions | 27 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/cat6.png | 14.58KB | 0.58KB | ▼ 96.05% |