Benchmarks
Plugin footprint 83% 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.01MB] [CPU: ▼9.43ms] Passed 4 tests
An overview of server-side resources used by GitHub Members Show-off
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.53 ▲0.27 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.76 ▼17.84 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.55 ▼2.13 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.13 ▼14.95 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.90 ▼2.78 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by GitHub Members Show-off
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.26 ▼1.12 | 1.92 ▲0.21 | 43.72 ▼1.02 |
Dashboard /wp-admin | 2,206 ▲21 | 5.83 ▼0.03 | 96.36 ▼16.62 | 39.04 ▼2.53 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.04 ▲0.03 | 33.23 ▼6.47 | 33.76 ▼1.08 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.06 ▼0.10 | 679.70 ▼9.28 | 54.89 ▼3.39 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.22 ▲0.07 | 99.55 ▼3.45 | 41.95 ▼3.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- 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)
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
Please take a closer look at the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/gh-members-showoff/views/members-listing.php:4
- > PHP Notice
Undefined variable: members in wp-content/plugins/gh-members-showoff/views/members-listing.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gh-members-showoff/views/members-listing.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gh-members-showoff/includes/widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/gh-members-showoff/views/widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gh-members-showoff/gh-members-showoff.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (Rendered shortcode) image required
- Screenshots: A description for screenshot #2 is missing in gh-members-showoff/assets to your readme.txt
gh-members-showoff/gh-members-showoff.php 85% from 13 tests
"GitHub Members Show-off" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
Success! There were no dangerous files found in this plugin830 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 99 | 151 | 506 |
Bourne Again Shell | 2 | 41 | 38 | 152 |
Markdown | 3 | 36 | 0 | 73 |
Bourne Shell | 1 | 12 | 6 | 47 |
YAML | 1 | 5 | 0 | 28 |
XML | 1 | 3 | 0 | 24 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 9.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 89.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.53% |
Functions | 8 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 8 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin