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: ▼0.91MB] [CPU: ▼35.79ms] Passed 4 tests
Server-side resources used by SocialMediaPanelForImages
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.82 ▼2.97 |
Dashboard /wp-admin | 3.03 ▼0.27 | 28.15 ▼19.82 |
Posts /wp-admin/edit.php | 3.03 ▼0.32 | 26.85 ▼28.46 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.86 | 23.38 ▼84.39 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 28.16 ▼10.48 |
Social Media Panel for Images /wp-admin/plugins.php?page=social-media-panel-for-images/smpi_plugin_admin_menu.php | 3.03 | 31.78 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SocialMediaPanelForImages
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,970 ▲209 | 13.73 ▼0.62 | 15.15 ▲13.15 | 40.92 ▲1.28 |
Dashboard /wp-admin | 2,196 ▲16 | 5.49 ▼0.08 | 85.17 ▼6.80 | 38.60 ▼8.04 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.01 | 34.59 ▼5.82 | 33.98 ▲1.08 |
Add New Post /wp-admin/post-new.php | 1,530 ▲1 | 23.34 ▼0.08 | 681.49 ▲32.87 | 52.74 ▼7.74 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.30 ▲0.14 | 97.31 ▼14.40 | 45.61 ▼3.32 |
Social Media Panel for Images /wp-admin/plugins.php?page=social-media-panel-for-images/smpi_plugin_admin_menu.php | 848 | 2.04 | 26.99 | 23.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=social-media-panel-for-images/smpi_plugin_admin_menu.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/plugins.php?page=social-media-panel-for-images/smpi_plugin_admin_menu.php
- > Notice in wp-content/plugins/social-media-panel-for-images/smpi_plugin_admin_menu.php+30
Undefined index: updated
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
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/social-media-panel-for-images/smpi_plugin_admin_menu.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/social-media-panel-for-images/uninstall.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/social-media-panel-for-images/smpi_plugin_admin_menu.php:3
- > PHP Warning
Use of undefined constant WP_UNINSTALL_PLUGIN - assumed 'WP_UNINSTALL_PLUGIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-media-panel-for-images/uninstall.php on line 2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/plugins.php?page=social-media-panel-for-images/smpi_plugin_admin_menu.php
- > Network (severe)
wp-content/plugins/social-media-panel-for-images/images/LinkedIn.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Here you can see buttons on image. They appear only when cursor is over the image and hides when cursor is out.), #2 (Other image with buttons.), #3 (Admin panel for plugin. Here you can activate or deactivate buttons)
- Tags: You are using too many tags: 17 tag instead of maximum 10
social-media-panel-for-images/index.php 92% from 13 tests
This is the main PHP file of "SocialMediaPanelForImages" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("social-media-panel-for-images.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected366 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 19 | 2 | 181 |
PHP | 4 | 11 | 21 | 168 |
JavaScript | 3 | 1 | 1 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.35MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) images/pinterest.png | 6.89KB | 0.00KB | ▼ 100.00% |
assets/screenshot-1.png | 28.55KB | 27.35KB | ▼ 4.20% |
assets/screenshot-2.png | 108.09KB | 41.48KB | ▼ 61.62% |
(invalid) images/flickr.png | 5.13KB | 0.00KB | ▼ 100.00% |
images/LinkedIN.png | 39.14KB | 15.47KB | ▼ 60.47% |