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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.86 ▼0.98 | 5.23 ▼27.19 |
Dashboard /wp-admin | 1.87 ▼1.18 | 6.34 ▼36.86 |
Posts /wp-admin/edit.php | 1.88 ▼1.23 | 6.10 ▼36.15 |
Add New Post /wp-admin/post-new.php | 1.88 ▼3.55 | 5.60 ▼1,194.82 |
Media Library /wp-admin/upload.php | 1.88 ▼1.13 | 5.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,691 ▲85 | 16.04 ▲0.51 | 10.10 ▲1.26 | 46.75 ▼2.13 |
Dashboard /wp-admin | 2,936 ▲86 | 5.93 ▲0.14 | 132.12 ▲2.17 | 103.51 ▲3.70 |
Posts /wp-admin/edit.php | 2,712 ▲6 | 2.68 ▼0.01 | 64.48 ▼3.59 | 88.36 ▼10.26 |
Add New Post /wp-admin/post-new.php | 1,657 ▼196 | 19.17 ▲0.03 | 353.30 ▼26.15 | 106.82 ▲0.74 |
Media Library /wp-admin/upload.php | 1,781 ▲9 | 4.99 ▼0.02 | 156.12 ▲6.41 | 112.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 79 | 47 | 181 |
CSS | 1 | 19 | 5 | 105 |
PO File | 1 | 14 | 15 | 49 |
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 code | 0.25 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 8.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/like-button-2015-06.png | 11.29KB | 4.39KB | ▼ 61.09% |