83% gh-members-showoff

Code Review | GitHub Members Show-off

WordPress plugin GitHub Members Show-off scored83%from 54 tests.

About plugin

  • Plugin page: gh-members-showoff
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.9
  • WordPress version: 6.3.1
  • First release: Apr 25, 2014
  • Latest release: Apr 25, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: akeda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /949 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.53 ▲0.27
Dashboard /wp-admin3.31 ▼0.0444.76 ▼17.84
Posts /wp-admin/edit.php3.36 ▲0.0044.55 ▼2.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.13 ▼14.95
Media Library /wp-admin/upload.php3.23 ▲0.0031.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.121.92 ▲0.2143.72 ▼1.02
Dashboard /wp-admin2,206 ▲215.83 ▼0.0396.36 ▼16.6239.04 ▼2.53
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0333.23 ▼6.4733.76 ▼1.08
Add New Post /wp-admin/post-new.php1,533 ▼023.06 ▼0.10679.70 ▼9.2854.89 ▼3.39
Media Library /wp-admin/upload.php1,391 ▲64.22 ▲0.0799.55 ▼3.4541.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

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
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PHP999151506
Bourne Again Shell24138152
Markdown336073
Bourne Shell112647
YAML15028
XML13024

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 code0.20
Average class complexity9.80
▷ Minimum class complexity2.00
▷ Maximum class complexity23.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1789.47%
▷ Protected methods00.00%
▷ Private methods210.53%
Functions8
▷ Named functions00.00%
▷ Anonymous functions8100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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