Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.52MB] [CPU: ▲1.16ms] Passed 4 tests
A check of server-side resources used by Sharing Image
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.53 | 44.18 ▼2.17 |
Dashboard /wp-admin | 3.85 ▲0.55 | 47.54 ▼1.02 |
Posts /wp-admin/edit.php | 3.90 ▲0.55 | 50.99 ▲2.89 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.51 | 99.65 ▲8.24 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 39.70 ▲4.94 |
Sharing Image /wp-admin/options-general.php?page=sharing-image | 3.71 | 41.73 |
Server storage [IO: ▲3.60MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Sharing Image
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.24 ▼1.35 | 1.98 ▲0.16 | 40.09 ▼3.97 |
Dashboard /wp-admin | 2,210 ▲25 | 4.84 ▼0.97 | 109.26 ▲9.13 | 42.37 ▲1.80 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 1.99 ▼0.06 | 39.55 ▲3.80 | 35.32 ▲0.38 |
Add New Post /wp-admin/post-new.php | 6,297 ▲4,783 | 19.31 ▲1.89 | 836.42 ▲150.92 | 57.05 ▼5.97 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.19 ▼0.01 | 98.77 ▼20.05 | 41.79 ▼6.90 |
Sharing Image /wp-admin/options-general.php?page=sharing-image | 979 | 3.43 | 42.94 | 31.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 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 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 Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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: telegram, twitter, vkcom, twitter image, facebook...
sharing-image/sharing-image.php Passed 13 tests
The main file in "Sharing Image" v. 2.0.16 serves as a complement to information provided in readme.txt and as the entry point to the plugin
77 characters long description:
Create sharing image for Facebook, VK.com, Telegram and other social networks
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin10,224 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 1,088 | 987 | 5,201 |
PHP | 22 | 996 | 1,825 | 2,970 |
CSS | 2 | 2 | 0 | 1,294 |
JSON | 2 | 0 | 0 | 443 |
Markdown | 1 | 57 | 0 | 303 |
XML | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 48.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 183 | |
▷ Static methods | 19 | 10.38% |
▷ Public methods | 124 | 67.76% |
▷ Protected methods | 19 | 10.38% |
▷ Private methods | 40 | 21.86% |
Functions | 7 | |
▷ Named functions | 3 | 42.86% |
▷ Anonymous functions | 4 | 57.14% |
Constants | 12 | |
▷ Global constants | 4 | 33.33% |
▷ Class constants | 8 | 66.67% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin