Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.38MB] [CPU: ▲0.74ms] Passed 4 tests
Analyzing server-side resources used by Social Media Share Buttons Plugin - Gshare
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 52.34 ▼3.66 |
Dashboard /wp-admin | 3.70 ▲0.40 | 47.27 ▲1.24 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 50.00 ▲5.70 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 98.12 ▲0.21 |
Media Library /wp-admin/upload.php | 3.56 ▲0.34 | 37.20 ▲5.18 |
Server storage [IO: ▲3.35MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 121 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
gshare_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Social Media Share Buttons Plugin - Gshare
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲112 | 13.45 ▼0.93 | 1.80 ▼0.75 | 41.61 ▼11.41 |
Dashboard /wp-admin | 2,264 ▲79 | 5.19 ▼0.66 | 101.65 ▼12.34 | 87.32 ▲48.88 |
Posts /wp-admin/edit.php | 2,164 ▲78 | 2.34 ▲0.29 | 41.43 ▲5.78 | 37.29 ▲3.63 |
Add New Post /wp-admin/post-new.php | 6,249 ▲4,721 | 19.81 ▲1.52 | 885.65 ▲242.25 | 145.22 ▲79.63 |
Media Library /wp-admin/upload.php | 1,465 ▲77 | 4.55 ▲0.33 | 92.45 ▼13.33 | 85.57 ▲39.47 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- gshare_version
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/social-media-share-buttons-gshare/views/template.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/social-media-share-buttons-gshare/inc/functions-settings.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: Please delete some tags, you are using 22 tag instead of maximum 10
social-media-share-buttons-gshare/social-media-share-buttons-gshare.php 85% from 13 tests
Analyzing the main PHP file in "Social Media Share Buttons Plugin - Gshare" version 1.2.1
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: The required version number must match the one declared in readme.txt ("4.8" instead of "5.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin24,533 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 2,748 | 34 | 17,613 |
SVG | 14 | 0 | 0 | 2,931 |
PHP | 13 | 606 | 779 | 2,859 |
JSON | 3 | 0 | 0 | 520 |
JavaScript | 2 | 188 | 535 | 455 |
Markdown | 1 | 61 | 0 | 155 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 27.70 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 1 | 10.00% |
Methods | 134 | |
▷ Static methods | 5 | 3.73% |
▷ Public methods | 98 | 73.13% |
▷ Protected methods | 8 | 5.97% |
▷ Private methods | 28 | 20.90% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
73 PNG files occupy 0.29MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/layout/theme17.png | 6.63KB | 3.20KB | ▼ 51.71% |
assets/images/layout/theme2-sm.png | 2.12KB | 1.19KB | ▼ 43.72% |
assets/images/layout/theme1.png | 2.53KB | 1.37KB | ▼ 45.90% |
assets/images/icon/pocket.png | 1.61KB | 0.51KB | ▼ 68.06% |
assets/images/icon/telegram.png | 0.72KB | 0.52KB | ▼ 27.35% |