Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/hover-pin-it/hover-pin-it.php+134
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.31MB] [CPU: ▼19.96ms] Passed 4 tests
Server-side resources used by Hover Pin-It
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▼0.01 | 35.02 ▼11.36 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.20 ▼4.37 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 49.61 ▼0.35 |
Add New Post /wp-admin/post-new.php | 4.61 ▼1.28 | 43.95 ▼60.57 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.91 ▼3.54 |
Hover Pin-It /wp-admin/options-general.php?page=hover-pin-it/hover-pin-it.php | 3.21 | 32.92 |
Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
pin_it_buttons_options |
Browser metrics Passed 4 tests
Checking browser requirements for Hover Pin-It
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲122 | 13.83 ▼0.70 | 10.32 ▲8.59 | 39.22 ▼7.78 |
Dashboard /wp-admin | 2,199 ▲22 | 5.64 ▲0.00 | 94.39 ▼4.16 | 42.77 ▲1.96 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.02 | 39.27 ▲0.85 | 37.41 ▲2.18 |
Add New Post /wp-admin/post-new.php | 1,544 ▲16 | 22.85 ▼0.21 | 592.18 ▼87.94 | 54.00 ▲1.04 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.21 ▼0.02 | 99.43 ▼3.60 | 41.88 ▼6.97 |
Hover Pin-It /wp-admin/options-general.php?page=hover-pin-it/hover-pin-it.php | 1,207 | 2.05 | 28.20 | 29.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 add_action() in wp-content/plugins/hover-pin-it/hover-pin-it.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 12 tag instead of maximum 10
hover-pin-it/hover-pin-it.php Passed 13 tests
This is the main PHP file of "Hover Pin-It" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
59 characters long description:
Places a Pinterest Pin It button directly over your images.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,412 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 234 | 255 | 1,315 |
JavaScript | 1 | 5 | 8 | 97 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 143.00 |
▷ Minimum class complexity | 122.00 |
▷ Maximum class complexity | 164.00 |
Average method complexity | 4.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 61 | 79.22% |
▷ Protected methods | 16 | 20.78% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 19 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
pin-it-button-previews.png | 3.79KB | 2.46KB | ▼ 35.31% |
pinterest.png | 4.73KB | 2.56KB | ▼ 45.75% |