84% hello-dolly-for-your-song

Code Review | Hello Dolly For Your Song

WordPress plugin Hello Dolly For Your Song scored84%from 54 tests.

About plugin

  • Plugin page: hello-dolly-for-y...
  • Plugin version: 0.18
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: May 4, 2013
  • Latest release: Mar 29, 2023
  • Number of updates: 98
  • Update frequency: every 36.9 days
  • Top authors: unmus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /5,470 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.59MB] [CPU: ▼18.52ms] Passed 4 tests

An overview of server-side resources used by Hello Dolly For Your Song
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0939.16 ▼4.98
Dashboard /wp-admin3.40 ▲0.0951.00 ▼1.10
Posts /wp-admin/edit.php3.51 ▲0.1549.88 ▼1.93
Add New Post /wp-admin/post-new.php3.27 ▼2.6237.81 ▼66.06
Media Library /wp-admin/upload.php3.32 ▲0.0935.05 ▼0.99

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 12 new options
New WordPress options
widget_hdfys_widget
hdfys_activated
hdfys_admin_lyric
theysaidso_admin_options
widget_recent-comments
hdfys_song
db_upgraded
hdfys_version
widget_recent-posts
can_compress_scripts
...

Browser metrics Passed 4 tests

Checking browser requirements for Hello Dolly For Your Song
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.34 ▼1.064.45 ▲2.4841.45 ▼0.29
Dashboard /wp-admin2,219 ▲285.89 ▼0.01101.17 ▲1.2840.15 ▼3.49
Posts /wp-admin/edit.php2,098 ▲92.06 ▼0.1035.99 ▼3.9733.78 ▼3.95
Add New Post /wp-admin/post-new.php6,192 ▲4,64819.04 ▲0.71888.14 ▲227.4469.73 ▲8.94
Media Library /wp-admin/upload.php1,395 ▲74.21 ▲0.0194.51 ▼9.9141.52 ▼6.15
Hello Dolly Your Song /wp-admin/hdfys_settings.php260.440.1113.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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 Passed 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 SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/hdfys_settings.php
    • > Network (severe)
    wp-admin/hdfys_settings.php - Failed to load resource: the server responded with a status of 404 (Not 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: love, hello world, random, admin, learning wordpress

hello-dolly-for-your-song/hellodollyforyoursong.php 92% from 13 tests

The main PHP file in "Hello Dolly For Your Song" ver. 0.18 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hello-dolly-for-your-song.php" instead of "hellodollyforyoursong.php")

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
Good job! No executable or dangerous file extensions detected686 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP16187448472
PO File5650191
JavaScript1112423

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity3.00
▷ Minimum class complexity2.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions29
▷ Named functions29100.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 images were found in this plugin