90% wp-heart-throb

Code Review | WP Heart Throb

WordPress plugin WP Heart Throb scored90%from 54 tests.

About plugin

  • Plugin page: wp-heart-throb
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Dec 23, 2016
  • Latest release: Jan 3, 2017
  • Number of updates: 8
  • Update frequency: every 9.6 days
  • Top authors: johnjamesjacoby (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,555 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by WP Heart Throb
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.39 ▼5.10
Dashboard /wp-admin3.32 ▲0.0143.13 ▼6.46
Posts /wp-admin/edit.php3.37 ▲0.0147.01 ▲2.80
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.44 ▼9.25
Media Library /wp-admin/upload.php3.24 ▲0.0133.37 ▼1.35

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WP Heart Throb
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲19513.79 ▼0.606.00 ▲4.2239.87 ▼0.65
Dashboard /wp-admin2,289 ▲984.90 ▼0.1296.61 ▼6.0137.43 ▼2.36
Posts /wp-admin/edit.php2,139 ▲472.07 ▲0.0136.01 ▼5.3134.08 ▼3.37
Add New Post /wp-admin/post-new.php1,521 ▼1223.44 ▲0.27655.77 ▼14.3449.21 ▼1.05
Media Library /wp-admin/upload.php1,417 ▲294.26 ▲0.05106.11 ▲3.8346.03 ▲0.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: jquery, beat, heart

wp-heart-throb/wp-heart-throb.php Passed 13 tests

"WP Heart Throb" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
72 characters long description:
Shows a beating heart in your toolbar for each tick of the heartbeat API

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected94 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4258049
CSS15030
JavaScript16615

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions6
▷ Named functions6100.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 files were detected