84% dx-github-badge

Code Review | DX GitHub Badge

WordPress plugin DX GitHub Badge scored 84% from 54 tests.

About plugin

  • Plugin page: dx-github-badge
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.5
  • WordPress version: 6.3.1
  • First release: Oct 18, 2013
  • Latest release: Apr 23, 2016
  • Number of updates: 9
  • Update frequency: every 102.0 days
  • Top authors: metodiew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,121 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.07 ▼8.38
Dashboard /wp-admin3.32 ▲0.0245.39 ▲1.00
Posts /wp-admin/edit.php3.37 ▲0.0246.10 ▼0.58
Add New Post /wp-admin/post-new.php5.90 ▲0.0294.57 ▲3.42
Media Library /wp-admin/upload.php3.25 ▲0.0234.96 ▲4.65
DX GitHub Badge /wp-admin/options-general.php?page=dx_github_badge_help3.2431.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.19 ▼1.561.63 ▼0.3041.53 ▼4.96
Dashboard /wp-admin2,213 ▲215.85 ▲0.8999.23 ▼8.3738.97 ▼1.44
Posts /wp-admin/edit.php2,093 ▲71.99 ▼0.0038.49 ▲1.3337.27 ▲6.40
Add New Post /wp-admin/post-new.php1,517 ▼1617.81 ▼5.38613.81 ▼60.7650.91 ▼12.43
Media Library /wp-admin/upload.php1,389 ▲14.19 ▼0.08101.06 ▲1.2141.44 ▼1.46
DX GitHub Badge /wp-admin/options-general.php?page=dx_github_badge_help8172.1823.6344.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP33771188
CSS2108

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 code0.06
Average class complexity3.00
▷ Minimum class complexity2.00
▷ Maximum class complexity4.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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