78% getgit

Code Review | GetGit

WordPress plugin GetGit scored78%from 54 tests.

About plugin

  • Plugin page: getgit
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 11, 2013
  • Latest release: Mar 19, 2013
  • Number of updates: 11
  • Update frequency: every 1.0 days
  • Top authors: claycarpenter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,394 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.48ms] Passed 4 tests

This is a short check of server-side resources used by GetGit
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.58 ▼2.86
Dashboard /wp-admin3.38 ▲0.0851.13 ▼0.88
Posts /wp-admin/edit.php3.49 ▲0.1452.12 ▲0.31
Add New Post /wp-admin/post-new.php5.96 ▲0.0788.29 ▼10.48
Media Library /wp-admin/upload.php3.30 ▲0.0843.35 ▲6.86
GetGit /wp-admin/options-general.php?page=getgit3.2633.21

Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
getgit_options
theysaidso_admin_options

Browser metrics Passed 4 tests

GetGit: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7019.43 ▲5.1412.70 ▲10.6640.86 ▼3.88
Dashboard /wp-admin2,214 ▲297.19 ▲1.18116.24 ▲11.2442.52 ▼4.25
Posts /wp-admin/edit.php2,097 ▲54.26 ▲2.2556.53 ▲15.1335.22 ▼1.05
Add New Post /wp-admin/post-new.php1,521 ▲125.35 ▲2.51681.92 ▲13.7558.06 ▲7.71
Media Library /wp-admin/upload.php1,393 ▲56.35 ▲2.15120.16 ▲13.5043.97 ▲1.94
GetGit /wp-admin/options-general.php?page=getgit8163.7644.0832.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • getgit_options
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=getgit
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=getgit
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/getgit/php/options_page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/getgit/plugin.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: github, repositories, embed, code, snippet

getgit/plugin.php 92% from 13 tests

"GetGit" version 0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("getgit.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected901 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
CSS24024625
PHP6107366233
JavaScript353643

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.17
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods24
▷ Static methods937.50%
▷ Public methods1979.17%
▷ Protected methods00.00%
▷ Private methods520.83%
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
PNG images were not found in this plugin