84% greetings-bygosh

Code Review | Greetings byGosh

WordPress plugin Greetings byGosh scored84%from 54 tests.

About plugin

  • Plugin page: greetings-bygosh
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6.1
  • WordPress version: 6.3.1
  • First release: Oct 7, 2019
  • Latest release: Feb 7, 2021
  • Number of updates: 3
  • Update frequency: every 163.0 days
  • Top authors: bygosh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /623 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.00MB] [CPU: ▼8.17ms] Passed 4 tests

A check of server-side resources used by Greetings byGosh
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.89 ▼9.76
Dashboard /wp-admin3.31 ▼0.0354.01 ▼14.37
Posts /wp-admin/edit.php3.36 ▲0.0152.20 ▼0.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.43 ▼8.37
Media Library /wp-admin/upload.php3.23 ▲0.0141.24 ▲3.49

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Greetings byGosh
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.76 ▲0.561.71 ▼0.0943.61 ▼0.81
Dashboard /wp-admin2,195 ▲185.58 ▼0.0991.90 ▼1.0538.73 ▼7.45
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0241.35 ▲3.3936.15 ▼1.13
Add New Post /wp-admin/post-new.php1,526 ▼023.64 ▲0.67616.39 ▼56.2752.80 ▼11.44
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.03102.93 ▼0.7645.23 ▲1.76

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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)
Everything seems fine, however this is by no means 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
Please fix the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/greetings-bygosh/greetings-bygosh.php
    • > /wp-content/plugins/greetings-bygosh/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Requires php: Invalid plugin version format
You can take inspiration from this readme.txt

greetings-bygosh/greetings-bygosh.php Passed 13 tests

"Greetings byGosh" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
79 characters long description:
Supplements the standard greeting “Howdy” in the WordPress admin dashboard.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin38 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP252138

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected