Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.34ms] Passed 4 tests
A check of server-side resources used by Dynamic Pin It Button On Image Hover
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 45.83 ▲2.38 |
Dashboard /wp-admin | 3.38 ▲0.03 | 51.79 ▼17.88 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 55.74 ▲5.99 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.07 | 88.61 ▼6.99 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 42.52 ▲5.14 |
Pin It Button /wp-admin/options-general.php?page=pin-it-button | 3.27 | 34.55 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
dwl_pin_it_button_settings |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Dynamic Pin It Button On Image Hover
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.68 ▲0.41 | 1.94 ▲0.13 | 45.09 ▲0.64 |
Dashboard /wp-admin | 2,196 ▲19 | 5.52 ▼0.14 | 89.57 ▼14.69 | 40.13 ▼3.31 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.02 | 36.80 ▲0.86 | 33.80 ▼0.45 |
Add New Post /wp-admin/post-new.php | 1,534 ▼0 | 23.14 ▲0.26 | 655.81 ▼28.01 | 53.17 ▼0.64 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▲0.01 | 95.65 ▼27.99 | 42.94 ▼6.89 |
Pin It Button /wp-admin/options-general.php?page=pin-it-button | 881 | 2.05 | 23.57 | 28.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- dwl_pin_it_button_settings
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dynamic-pin-it-button-on-image-hover/includes/class-dynamic-pinterest-settings.php:186
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: pin it button, pin images, pin photo, pinterest
dynamic-pin-it-button-on-image-hover/dynamic-pinterest-pin-it-button-on-image-hover.php 85% from 13 tests
Analyzing the main PHP file in "Dynamic Pin It Button On Image Hover" version 1.0.0
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dynamic-pin-it-button-on-image-hover.php" instead of "dynamic-pinterest-pin-it-button-on-image-hover.php")
- 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin318 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 132 | 380 | 318 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 26 | 89.66% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 10.34% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin