83% hello-lyrics

Code Review | Hello Lyrics

WordPress plugin Hello Lyrics scored83%from 54 tests.

About plugin

  • Plugin page: hello-lyrics
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Oct 7, 2019
  • Latest release: Oct 22, 2023
  • Number of updates: 16
  • Update frequency: every 92.3 days
  • Top authors: Hakik (81.25%)wpxteam (25%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,012 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.87ms] Passed 4 tests

Server-side resources used by Hello Lyrics
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.66 ▼0.02
Dashboard /wp-admin3.35 ▲0.0048.16 ▼14.19
Posts /wp-admin/edit.php3.40 ▲0.0445.88 ▲0.13
Add New Post /wp-admin/post-new.php5.94 ▲0.0484.22 ▼5.39
Media Library /wp-admin/upload.php3.28 ▲0.0441.26 ▲4.50

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Hello Lyrics: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.17 ▼0.401.76 ▼0.1644.07 ▲1.53
Dashboard /wp-admin2,200 ▲205.49 ▼0.1486.62 ▼12.6441.66 ▼4.96
Posts /wp-admin/edit.php2,108 ▲81.99 ▲0.0534.33 ▼1.6537.33 ▲0.14
Add New Post /wp-admin/post-new.php6,374 ▲4,84827.68 ▲4.55925.71 ▲242.0968.06 ▲10.20
Media Library /wp-admin/upload.php1,408 ▲54.23 ▲0.05109.72 ▲7.6544.49 ▲3.07

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_block_wrapper_attributes() in wp-content/plugins/hello-lyrics/block/build/render.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-lyrics/hello-lyrics.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-lyrics/block/index.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 83% 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
These attributes need your attention: Please take inspiration from this readme.txt

hello-lyrics/hello-lyrics.php 69% from 13 tests

The main PHP script in "Hello Lyrics" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 200 characters long)
  • Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "5.2")
  • Domain Path: The domain path folder does not exist ("/languages")
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.3" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin28,381 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JSON40028,098
JavaScript144136172
PHP43151111
CSS22190

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.05
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%
Functions11
▷ Named functions11100.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
PNG images were not found in this plugin