Benchmarks
Plugin footprint 82% 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.04MB] [CPU: ▼7.57ms] 75% from 4 tests
An overview of server-side resources used by WP Showcase for GitHub
Please take the time to fix the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,710.73ms on /wp-admin/admin.php?page=ghp-update-repos)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 45.19 ▲1.14 |
Dashboard /wp-admin | 3.34 ▲0.04 | 52.58 ▲5.12 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 43.82 ▼3.39 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 81.98 ▼25.08 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.24 ▼2.94 |
Projects Settings /wp-admin/admin.php?page=ghp-options | 3.23 | 29.48 |
All Repos /wp-admin/edit.php?post_type=repo | 3.31 | 33.63 |
Update Repositories /wp-admin/admin.php?page=ghp-update-repos | 3.91 | 1,710.73 |
Add New /wp-admin/post-new.php?post_type=repo | 3.38 | 46.38 |
Server storage [IO: ▲0.03MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Showcase for GitHub
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲111 | 13.26 ▼1.13 | 3.77 ▲1.87 | 37.44 ▼4.86 |
Dashboard /wp-admin | 2,243 ▲58 | 4.98 ▲0.07 | 111.51 ▼16.05 | 73.48 ▲15.46 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.01 ▼0.04 | 41.18 ▲0.81 | 35.73 ▼4.05 |
Add New Post /wp-admin/post-new.php | 1,577 ▲63 | 23.44 ▲5.82 | 722.38 ▲79.08 | 69.37 ▲24.19 |
Media Library /wp-admin/upload.php | 1,437 ▲49 | 4.13 ▼0.04 | 108.76 ▼14.67 | 84.06 ▲31.75 |
Projects Settings /wp-admin/admin.php?page=ghp-options | 1,198 | 2.23 | 71.63 | 24.32 |
All Repos /wp-admin/edit.php?post_type=repo | 1,108 | 1.98 | 30.52 | 28.95 |
Update Repositories /wp-admin/admin.php?page=ghp-update-repos | 801 | 2.05 | 25.98 | 25.47 |
Add New /wp-admin/post-new.php?post_type=repo | 2,177 | 7.51 | 167.42 | 113.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
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
Please take a closer look at the following
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-showcase-for-github/template/shortcode-github-projects.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-showcase-for-github/inc/save-options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-showcase-for-github/inc/dynamic-style.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-showcase-for-github/inc/textdomain.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-showcase-for-github/posts/register-github-posts.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-showcase-for-github/inc/add-options-page.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-showcase-for-github/posts/insert-post.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-showcase-for-github/inc/enqueue-scripts.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
4 plugin tags: show github, github, github projects, display github
wp-showcase-for-github/github-projects-wp.php 92% from 13 tests
This is the main PHP file of "WP Showcase for GitHub" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-showcase-for-github.php" instead of "github-projects-wp.php")
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
Everything looks great! No dangerous files found in this plugin352 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 35 | 67 | 277 |
CSS | 1 | 7 | 1 | 68 |
JavaScript | 2 | 0 | 7 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/public/img/github-logo.png | 2.29KB | 1.90KB | ▼ 17.04% |
assets/admin/img/github.png | 0.91KB | 0.57KB | ▼ 37.74% |