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
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼11.06ms] Passed 4 tests
This is a short check of server-side resources used by Sharekar : Social Media Share Button
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.80 ▼4.05 |
Dashboard /wp-admin | 3.36 ▲0.01 | 53.15 ▼16.10 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 54.61 ▲2.89 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 96.16 ▼23.17 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.05 ▼0.93 |
Settings /wp-admin/admin.php?page=sharekar | 3.38 | 35.89 |
Web Share New /wp-admin/admin.php?page=sharekar_webshare | 3.29 | 36.42 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
sharekar_version |
Browser metrics Passed 4 tests
Checking browser requirements for Sharekar : Social Media Share Button
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 14.36 ▼0.23 | 1.61 ▼0.21 | 43.47 ▲1.15 |
Dashboard /wp-admin | 2,243 ▲66 | 4.86 ▼0.72 | 97.72 ▼6.25 | 43.07 ▼5.14 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.36 ▲0.42 | 43.20 ▲5.75 | 40.16 ▲3.95 |
Add New Post /wp-admin/post-new.php | 6,232 ▲4,704 | 19.15 ▼4.03 | 888.30 ▲203.70 | 36.67 ▼16.08 |
Media Library /wp-admin/upload.php | 1,452 ▲52 | 4.53 ▲0.41 | 91.47 ▼22.97 | 40.33 ▼6.22 |
Settings /wp-admin/admin.php?page=sharekar | 1,821 | 2.52 | 53.76 | 36.28 |
Web Share New /wp-admin/admin.php?page=sharekar_webshare | 1,068 | 2.56 | 42.29 | 37.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
- 9× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sharekar/front.php
- > /wp-content/plugins/sharekar/social.php
- > /wp-content/plugins/sharekar/web-share-settings.php
- > /wp-content/plugins/sharekar/main.php
- > /wp-content/plugins/sharekar/settings-view.php
- > /wp-content/plugins/sharekar/settings.php
- > /wp-content/plugins/sharekar/sharecount.php
- > /wp-content/plugins/sharekar/web-share.php
- > /wp-content/plugins/sharekar/click_to_tweet.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/sharekar/sharekar.php:18
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: sharing, sharing icons, sharing buttons, share, social share...
sharekar/sharekar.php 85% from 13 tests
The primary PHP file in "Sharekar : Social Media Share Button" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Requires PHP: The required version number did not match the one declared in readme.txt ("5.6" instead of "7.3")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,121 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 497 | 33 | 1,841 |
JavaScript | 3 | 20 | 3 | 193 |
CSS | 2 | 16 | 5 | 86 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
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 | 71 | |
▷ Named functions | 71 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin