68% harlem-shake

Code Review | Harlem Shake Beta Plugin

WordPress plugin Harlem Shake Beta Plugin scored68%from 54 tests.

About plugin

  • Plugin page: harlem-shake
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2013
  • Latest release: Mar 10, 2013
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: rutgerhensel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,714 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼1.94MB] [CPU: ▼58.90ms] Passed 4 tests

A check of server-side resources used by Harlem Shake Beta Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.405.22 ▼36.70
Dashboard /wp-admin2.08 ▼1.275.42 ▼54.99
Posts /wp-admin/edit.php2.08 ▼1.285.33 ▼43.00
Add New Post /wp-admin/post-new.php2.08 ▼3.815.39 ▼100.89
Media Library /wp-admin/upload.php2.08 ▼1.155.06 ▼30.11
Harlem Shake Beta /wp-admin/options-general.php?page=harlem-shake2.086.18

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Harlem Shake Beta Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲12013.63 ▼0.755.48 ▲3.4037.91 ▼6.77
Dashboard /wp-admin2,210 ▲225.86 ▼0.04100.45 ▼6.0539.58 ▼5.04
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0434.33 ▼12.0434.12 ▼1.82
Add New Post /wp-admin/post-new.php1,545 ▲3118.66 ▲1.04604.16 ▼8.8858.00 ▲3.54
Media Library /wp-admin/upload.php1,386 ▼24.21 ▼0.07100.51 ▲0.0743.13 ▼3.15
Harlem Shake Beta /wp-admin/options-general.php?page=harlem-shake7972.0624.4825.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=harlem-shake
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/harlem-shake/harlem-shake.php:26

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)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is missing
The official readme.txt might help

harlem-shake/harlem-shake.php Passed 13 tests

The principal PHP file in "Harlem Shake Beta Plugin" v. 0.1 is loaded by WordPress automatically on each request
94 characters long description:
Harlem Shake your website with sound and animation after typing the Konami code for activation

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected443 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1476215
JavaScript1150143
PHP1212585

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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