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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.14ms] Passed 4 tests
Server-side resources used by DX GitHub Badge
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 38.07 ▼8.38 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.39 ▲1.00 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.10 ▼0.58 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 94.57 ▲3.42 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.96 ▲4.65 |
DX GitHub Badge /wp-admin/options-general.php?page=dx_github_badge_help | 3.24 | 31.06 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_dx_github_badge_widget |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by DX GitHub Badge
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.19 ▼1.56 | 1.63 ▼0.30 | 41.53 ▼4.96 |
Dashboard /wp-admin | 2,213 ▲21 | 5.85 ▲0.89 | 99.23 ▼8.37 | 38.97 ▼1.44 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 1.99 ▼0.00 | 38.49 ▲1.33 | 37.27 ▲6.40 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.81 ▼5.38 | 613.81 ▼60.76 | 50.91 ▼12.43 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.19 ▼0.08 | 101.06 ▲1.21 | 41.44 ▼1.46 |
DX GitHub Badge /wp-admin/options-general.php?page=dx_github_badge_help | 817 | 2.18 | 23.63 | 44.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_dx_github_badge_widget
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
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)
Even though everything seems fine, this is not 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
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dx-github-badge/dx-github-badge.php:27
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dx-github-badge/widgets/dx-github-badge-widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/dx-github-badge/dx-github-badge-help.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: github, badge
dx-github-badge/dx-github-badge.php 92% from 13 tests
The main PHP script in "DX GitHub Badge" version 1.1 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected196 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 37 | 71 | 188 |
CSS | 2 | 1 | 0 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected