90% hello-star

Code Review | Hello Star

WordPress plugin Hello Star scored 90% from 54 tests.

About plugin

  • Plugin page: hello-star
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5+
  • WordPress version: 6.3.1
  • First release: Jan 17, 2017
  • Latest release: Jan 20, 2017
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: sarahphp1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 920 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: ▼3.92ms] Passed 4 tests

Server-side resources used by Hello Star
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.43 ▼8.62
Dashboard /wp-admin3.31 ▲0.0145.27 ▼0.58
Posts /wp-admin/edit.php3.36 ▲0.0149.85 ▲7.86
Add New Post /wp-admin/post-new.php5.91 ▲0.0392.55 ▼7.66
Media Library /wp-admin/upload.php3.24 ▲0.0134.74 ▲1.19
Hello Star /wp-admin/options-general.php?page=hello_star3.2031.59

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Hello Star
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲5913.48 ▼0.891.70 ▼0.4936.57 ▼5.97
Dashboard /wp-admin2,239 ▲515.06 ▼0.81114.55 ▲9.6341.96 ▼6.04
Posts /wp-admin/edit.php2,123 ▲372.30 ▲0.3142.46 ▲6.5036.60 ▲5.93
Add New Post /wp-admin/post-new.php1,537 ▲917.81 ▼0.18600.91 ▼46.4432.11 ▼18.41
Media Library /wp-admin/upload.php1,421 ▲394.59 ▲0.38103.37 ▲3.3645.06 ▲1.73
Hello Star /wp-admin/options-general.php?page=hello_star1,0912.5748.3926.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

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
5 plugin tags: hello dolly, astronomy, admin panel, constellations, apod

hello-star/hello-star.php 92% from 13 tests

This is the main PHP file of "Hello Star" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 175 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected135 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12658100
JavaScript10735

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions7
▷ Named functions7100.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