Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/pinterest-pin-it-button/includes/widgets.php+274
Function create_function() is deprecated
Server metrics [RAM: ▼1.84MB] [CPU: ▼359.96ms] Passed 4 tests
This is a short check of server-side resources used by Pinterest "Pin It" Button
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.53 ▼0.99 | 9.20 ▼48.17 |
Dashboard /wp-admin | 2.55 ▼0.86 | 7.71 ▼32.51 |
Posts /wp-admin/edit.php | 2.55 ▼1.09 | 9.54 ▼89.06 |
Add New Post /wp-admin/post-new.php | 2.55 ▼4.42 | 7.85 ▼1,270.11 |
Media Library /wp-admin/upload.php | 2.53 ▼0.76 | 7.33 ▼19.78 |
Help /wp-admin/admin.php?page=pinterest-pin-it-button_help | 2.53 | 7.24 |
Upgrade to Pro /wp-admin/admin.php?page=pinterest-pin-it-button-upgrade | 2.53 | 7.29 |
Settings /wp-admin/admin.php?page=pinterest-pin-it-button | 2.53 | 14.76 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 8 new options
New WordPress options |
---|
pib_upgrade_has_run |
pib_settings_advanced |
pib_settings_general |
pib_settings_styles |
pib_settings_post_visibility |
pib_has_run |
pib_version |
widget_pib_button |
Browser metrics Passed 4 tests
Pinterest "Pin It" Button: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,865 ▲111 | 17.60 ▲2.08 | 11.17 ▲4.74 | 2.25 ▼0.32 |
Dashboard /wp-admin | 2,958 ▲105 | 7.47 ▲1.33 | 125.90 ▼3.01 | 177.18 ▲16.40 |
Posts /wp-admin/edit.php | 2,827 ▲133 | 3.95 ▲0.71 | 110.72 ▲46.12 | 146.93 ▼12.12 |
Add New Post /wp-admin/post-new.php | 1,912 ▲222 | 25.18 ▲4.19 | 399.92 ▼58.74 | 184.78 ▲26.88 |
Media Library /wp-admin/upload.php | 1,832 ▲134 | 5.64 ▲0.17 | 121.16 ▼23.79 | 206.59 ▲15.38 |
Help /wp-admin/admin.php?page=pinterest-pin-it-button_help | 2,145 | 2.39 | 70.86 | 194.02 |
Upgrade to Pro /wp-admin/admin.php?page=pinterest-pin-it-button-upgrade | 700 | 0.94 | 0.04 | 41.64 |
Settings /wp-admin/admin.php?page=pinterest-pin-it-button | 1,637 | 2.47 | 65.89 | 138.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/pinterest-pin-it-button/includes/widgets.php+274
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 8 options in the database
- pib_settings_styles
- pib_settings_general
- pib_settings_advanced
- pib_upgrade_has_run
- pib_settings_post_visibility
- widget_pib_button
- pib_has_run
- pib_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pinterest-pin-it-button
- > Deprecated in wp-content/plugins/pinterest-pin-it-button/includes/widgets.php+274
Function create_function() is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pinterest-pin-it-button
- > Notice in wp-content/plugins/pinterest-pin-it-button/includes/misc-functions.php+76
Undefined variable: maxitems
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=pinterest-pin-it-button-upgrade
- > Network (severe)
http://pinplugins.com/?utm_source=pib_lite_2&utm_medium=plugin_menu&utm_campaign=pro_upgrade - Failed to load resource: the server responded with a status of 503 (Service Temporarily Unavailable)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Button display with count bubble beside), #2 (Button display with count bubble above), #3 (General button settings), #4 (Post visibility and placement settings), #5 (Style/CSS settings), #6 (Widget settings), #7 (Individual post (post meta) settings)
- Tags: There are too many tags (11 tag instead of maximum 10)
pinterest-pin-it-button/pinterest-pin-it-button.php 92% from 13 tests
The primary PHP file in "Pinterest "Pin It" Button" version 2.1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin3,094 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 667 | 978 | 3,015 |
CSS | 2 | 18 | 9 | 79 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 95.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 114 | |
▷ Static methods | 4 | 3.51% |
▷ Public methods | 96 | 84.21% |
▷ Protected methods | 16 | 14.04% |
▷ Private methods | 2 | 1.75% |
Functions | 43 | |
▷ Named functions | 43 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 27 | 100.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
12 PNG files occupy 0.17MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 18.27KB | 7.96KB | ▼ 56.42% |
screenshot-1.png | 1.80KB | 1.31KB | ▼ 26.81% |
screenshot-7.png | 18.37KB | 8.78KB | ▼ 52.20% |
screenshot-6.png | 26.74KB | 11.05KB | ▼ 58.69% |
screenshot-4.png | 31.89KB | 13.11KB | ▼ 58.89% |