84% rabbit-lyrics

Code Review | Rabbit Lyrics

WordPress plugin Rabbit Lyrics scored84%from 54 tests.

About plugin

  • Plugin page: rabbit-lyrics
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6.0-5.6.0
  • WordPress version: 6.3.1
  • First release: Mar 12, 2021
  • Latest release: Mar 12, 2021
  • Number of updates: 5
  • Update frequency: every 2.0 days
  • Top authors: guoyunhe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /459 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.57ms] Passed 4 tests

An overview of server-side resources used by Rabbit Lyrics
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.55 ▼0.15
Dashboard /wp-admin3.32 ▲0.0244.01 ▼2.43
Posts /wp-admin/edit.php3.37 ▲0.0247.88 ▼0.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.51 ▼11.53
Media Library /wp-admin/upload.php3.25 ▲0.0234.23 ▲3.07

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Rabbit Lyrics: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.29 ▼1.463.05 ▲1.4445.76 ▲5.80
Dashboard /wp-admin2,208 ▲175.86 ▼0.05106.17 ▲4.0240.88 ▲0.20
Posts /wp-admin/edit.php2,091 ▲22.05 ▲0.0739.83 ▲0.8235.87 ▼1.09
Add New Post /wp-admin/post-new.php6,360 ▲4,84127.70 ▲4.18833.40 ▲189.3335.88 ▼28.74
Media Library /wp-admin/upload.php1,390 ▲24.21 ▲0.0196.98 ▼5.0541.84 ▼3.94

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rabbit-lyrics/rabbit-lyrics.php:101

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #3 (Karaoke lyrics.), #4 (Audio books.)
Please take inspiration from this readme.txt

rabbit-lyrics/rabbit-lyrics.php Passed 13 tests

Analyzing the main PHP file in "Rabbit Lyrics" version 0.1.0
47 characters long description:
JavaScript audio and timed lyrics synchronizer.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected257 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript618105121
PHP3102073
CSS37032
JSON10016
Sass22015

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions1
▷ Named functions1100.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