74% hootproof-like-box

Code Review | HootProof Like Box

WordPress plugin HootProof Like Box scored 74% from 53 tests.

About plugin

  • Plugin page: hootproof-like-box
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.5
  • WordPress version: 5.8.1
  • First release: Mar 26, 2016
  • Latest release: Mar 29, 2017
  • Number of updates: 13
  • Update frequency: every 28.5 days
  • Top authors: hootproof (100%)

Code review

53 tests

User reviews

2 reviews

Install metrics

70+ active / 1,703 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼1.77MB] [CPU: ▼325.39ms] Passed 4 tests

Analyzing server-side resources used by HootProof Like Box
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.86 ▼0.985.23 ▼27.19
Dashboard /wp-admin1.87 ▼1.186.34 ▼36.86
Posts /wp-admin/edit.php1.88 ▼1.236.10 ▼36.15
Add New Post /wp-admin/post-new.php1.88 ▼3.555.60 ▼1,194.82
Media Library /wp-admin/upload.php1.88 ▼1.135.68 ▼33.73

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options
widget_hootproof_facebook_box

Browser metrics Passed 4 tests

A check of browser resources used by HootProof Like Box
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,691 ▲8516.04 ▲0.5110.10 ▲1.2646.75 ▼2.13
Dashboard /wp-admin2,936 ▲865.93 ▲0.14132.12 ▲2.17103.51 ▲3.70
Posts /wp-admin/edit.php2,712 ▲62.68 ▼0.0164.48 ▼3.5988.36 ▼10.26
Add New Post /wp-admin/post-new.php1,657 ▼19619.17 ▲0.03353.30 ▼26.15106.82 ▲0.74
Media Library /wp-admin/upload.php1,781 ▲94.99 ▼0.02156.12 ▲6.41112.92 ▼9.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5663
    wp_register_style 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 htprfb_like_box_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_hootproof_facebook_box

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/hootproof-like-box/Htprfb_Widget.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === hootproof-like-box === )
  • Screenshots: A description for screenshot #3 is required in hootproof-like-box/assets to your readme.txt
You can take inspiration from this readme.txt

hootproof-like-box/hootproof-like-box.php Passed 13 tests

The main file in "HootProof Like Box" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
97 characters long description:
Datenschutzfreundliche Like Box für deine Facebook-Page mit optionaler Anzeige der letzten Posts

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 plugin335 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP27947181
CSS1195105
PO File1141549

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity8.25
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/like-button-2015-06.png11.29KB4.39KB▼ 61.09%