Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▼140.50ms] Passed 4 tests
A check of server-side resources used by jQuery Pin It Button for Images
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.22 | 38.55 ▲10.91 |
Dashboard /wp-admin | 3.39 ▲0.33 | 50.17 ▲5.22 |
Posts /wp-admin/edit.php | 3.44 ▲0.33 | 47.41 ▲0.93 |
Add New Post /wp-admin/post-new.php | 5.69 ▲0.25 | 88.76 ▼570.74 |
Media Library /wp-admin/upload.php | 3.27 ▲0.27 | 35.94 ▲2.61 |
jQuery Pin It Button For Images Lite /wp-admin/options-general.php?page=jpibfi_settings | 3.28 | 39.38 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 48 new files
Database: no new tables, 1 new option
New WordPress options |
---|
jpibfi_version |
Browser metrics Passed 4 tests
An overview of browser requirements for jQuery Pin It Button for Images
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,808 ▲213 | 16.23 ▲0.66 | 17.23 ▲8.50 | 49.16 ▲2.58 |
Dashboard /wp-admin | 2,978 ▲44 | 6.04 ▼0.01 | 140.85 ▼8.08 | 116.63 ▼1.54 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▲0.00 | 74.08 ▲4.11 | 98.11 ▲3.72 |
Add New Post /wp-admin/post-new.php | 1,728 ▲124 | 17.01 ▼1.88 | 392.51 ▲7.76 | 122.86 ▲6.60 |
Media Library /wp-admin/upload.php | 1,815 ▲5 | 5.03 ▲0.01 | 174.32 ▲19.09 | 120.56 ▼6.41 |
jQuery Pin It Button For Images Lite /wp-admin/options-general.php?page=jpibfi_settings | 1,518 | 4.95 | 96.11 | 90.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'JPIBFI_Settings_Tab' not found in wp-content/plugins/jquery-pin-it-button-for-images/includes/admin/settings/jpibfi-import-export-settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'JPIBFI_Options' not found in wp-content/plugins/jquery-pin-it-button-for-images/includes/includes/options/jpibfi-advanced-options.php:3
- > PHP Fatal error
Uncaught Error: Class 'JPIBFI_Settings_Base' not found in wp-content/plugins/jquery-pin-it-button-for-images/includes/admin/settings/jpibfi-advanced-settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'JPIBFI_Settings_Base' not found in wp-content/plugins/jquery-pin-it-button-for-images/includes/admin/settings/jpibfi-visual-settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'JPIBFI_Options' not found in wp-content/plugins/jquery-pin-it-button-for-images/includes/includes/options/jpibfi-selection-options.php:3
- > PHP Fatal error
Uncaught Error: Class 'JPIBFI_Options' not found in wp-content/plugins/jquery-pin-it-button-for-images/includes/includes/options/jpibfi-visual-options.php:3
- > PHP Fatal error
Uncaught Error: Class 'JPIBFI_Settings_Base' not found in wp-content/plugins/jquery-pin-it-button-for-images/includes/admin/settings/jpibfi-selection-settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (11 tag instead of maximum 10)
jquery-pin-it-button-for-images/jquery-pin-it-button-for-images.php Passed 13 tests
"jQuery Pin It Button for Images" version 3.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
81 characters long description:
Highlights images on hover and adds a "Pin It" button over them for easy pinning.
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
There were no executable files found in this plugin2,131 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 474 | 184 | 2,112 |
SVG | 1 | 0 | 0 | 15 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 4 | 16.67% |
▷ Concrete classes | 20 | 83.33% |
▷ Final classes | 1 | 5.00% |
Methods | 134 | |
▷ Static methods | 2 | 1.49% |
▷ Public methods | 102 | 76.12% |
▷ Protected methods | 3 | 2.24% |
▷ Private methods | 29 | 21.64% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/settings_link_pro.png | 4.39KB | 2.62KB | ▼ 40.23% |
images/settings_tabs.png | 4.55KB | 3.02KB | ▼ 33.64% |
css/images/pinit-button.png | 5.87KB | 2.18KB | ▼ 62.85% |
images/settings_link.png | 7.18KB | 4.08KB | ▼ 43.17% |