94% hellothere-widget

Code Review | HelloThere Widget

WordPress plugin HelloThere Widget scored 94% from 54 tests.

About plugin

  • Plugin page: hellothere-widget
  • Plugin version: 0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.4
  • WordPress version: 5.9.2
  • First release: Feb 9, 2018
  • Latest release: Feb 10, 2018
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: hellothereio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 362 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼297.87ms] Passed 4 tests

An overview of server-side resources used by HelloThere Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0258.09 ▼2.36
Dashboard /wp-admin3.42 ▲0.0137.46 ▲0.17
Posts /wp-admin/edit.php3.66 ▲0.0149.95 ▲9.57
Add New Post /wp-admin/post-new.php6.90 ▼0.07104.47 ▼1,188.46
Media Library /wp-admin/upload.php3.31 ▲0.0029.18 ▼0.83

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for HelloThere Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,810 ▲5616.02 ▲0.357.07 ▲0.492.85 ▲0.35
Dashboard /wp-admin2,903 ▲526.14 ▲0.02117.25 ▼22.97159.13 ▼3.61
Posts /wp-admin/edit.php2,700 ▲283.24 ▲0.0065.39 ▼1.86139.57 ▼6.95
Add New Post /wp-admin/post-new.php1,770 ▲10922.36 ▲6.08432.14 ▲1.62160.67 ▲3.11
Media Library /wp-admin/upload.php1,713 ▲155.56 ▲0.03150.76 ▼12.65190.05 ▼2.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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 no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/hellothere-widget/hellothere-widget.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: leads

hellothere-widget/hellothere-widget.php Passed 13 tests

The main file in "HelloThere Widget" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
47 characters long description:
This plugin adds HelloThere widget to the site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin51 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP113651

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin