Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WPGRC_Init::on_activate() should not be called statically
Server metrics [RAM: ▼1.63MB] [CPU: ▼53.40ms] Passed 4 tests
Analyzing server-side resources used by WP Github Recent commit
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.38 ▼1.09 | 10.66 ▼31.47 |
Dashboard /wp-admin | 2.39 ▼0.96 | 15.18 ▼53.13 |
Posts /wp-admin/edit.php | 2.39 ▼0.97 | 13.27 ▼35.39 |
Add New Post /wp-admin/post-new.php | 2.39 ▼3.50 | 14.63 ▼93.60 |
Media Library /wp-admin/upload.php | 2.39 ▼0.84 | 13.61 ▼20.55 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_widget_dh_github_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP Github Recent commit
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.13 ▼1.52 | 1.80 ▼0.24 | 42.89 ▼2.07 |
Dashboard /wp-admin | 2,206 ▲15 | 5.91 ▼0.02 | 95.54 ▼18.26 | 38.74 ▼8.62 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▼0.02 | 39.50 ▲4.31 | 35.32 ▼1.08 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 18.61 ▼4.36 | 618.77 ▲29.16 | 54.34 ▲6.93 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.19 ▼0.04 | 96.64 ▼9.67 | 40.40 ▼2.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in WP_Github_Recent_Commit_Widget is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_widget_dh_github_widget
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WPGRC_Github_API_v3' not found in wp-content/plugins/wp-github-recent-commit/views/view-github-widget.php:7
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/wp-github-recent-commit/widget/views/view-github-widget.php on line 4
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/wp-github-recent-commit/widget/views/view-github-widget.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'WPGRC_Github_API_v3' not found in wp-content/plugins/wp-github-recent-commit/widget/views/view-github-widget.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-github-recent-commit/wp-github-recent-commit.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-github-recent-commit/widget/widgets.php:28
- > PHP Fatal error
Uncaught Error: Class 'Cache_Github_Api_V3' not found in wp-content/plugins/wp-github-recent-commit/classes/class.github-api-v3.php:6
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/wp-github-recent-commit/views/view-github-widget.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-github-recent-commit/widget/github-widget.php:5
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-github-recent-commit ===
)
wp-github-recent-commit/wp-github-recent-commit.php Passed 13 tests
The main PHP file in "WP Github Recent commit" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
116 characters long description:
Wordpress widget that grabs a random Octocat from the Octodex and the latest commit from a public GitHub repository.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected807 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 170 | 178 | 728 |
Markdown | 1 | 14 | 0 | 39 |
Sass | 1 | 1 | 1 | 28 |
CSS | 1 | 1 | 3 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 21.80 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 66.67% |
▷ Protected methods | 12 | 33.33% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ 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
4 PNG files occupy 0.15MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 49.63KB | 13.85KB | ▼ 72.09% |
screenshot-1.png | 31.64KB | 9.19KB | ▼ 70.95% |
screenshot1.png | 31.64KB | 9.19KB | ▼ 70.95% |
screenshot2.png | 38.63KB | 10.54KB | ▼ 72.71% |