84% lyrics-by-eminem

Code Review | Lyrics by Eminem

WordPress plugin Lyrics by Eminem scored84%from 54 tests.

About plugin

  • Plugin page: lyrics-by-eminem
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 4, 2021
  • Latest release: Jul 22, 2023
  • Number of updates: 26
  • Update frequency: every 34.7 days
  • Top authors: dsiemers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /462 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.75ms] Passed 4 tests

An overview of server-side resources used by Lyrics by Eminem
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.50 ▼0.55
Dashboard /wp-admin3.31 ▲0.0149.71 ▼3.20
Posts /wp-admin/edit.php3.36 ▲0.0150.28 ▼0.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.69 ▼6.60
Media Library /wp-admin/upload.php3.24 ▲0.0142.39 ▲7.50

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Lyrics by Eminem
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.25 ▼1.331.71 ▼0.3340.02 ▼5.83
Dashboard /wp-admin2,218 ▲305.81 ▲0.94101.54 ▼15.6055.40 ▲13.34
Posts /wp-admin/edit.php2,112 ▲262.00 ▼0.0235.72 ▼0.1247.39 ▲14.32
Add New Post /wp-admin/post-new.php1,593 ▲7922.60 ▲5.13670.03 ▲42.3182.61 ▲31.10
Media Library /wp-admin/upload.php1,397 ▲64.19 ▼0.03104.19 ▲1.1058.22 ▲14.46

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lyrics-by-eminem/eminem.php:88

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: lines, funny, eminem, rap, lyrics

lyrics-by-eminem/eminem.php 92% from 13 tests

This is the main PHP file of "Lyrics by Eminem" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lyrics-by-eminem.php" instead of "eminem.php")

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
Everything looks great! No dangerous files found in this plugin94 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2101294

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin