Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼287.66ms] Passed 4 tests
Analyzing server-side resources used by Social Media Social Share Icon
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.16 | 68.22 ▲16.36 |
Dashboard /wp-admin | 3.58 ▲0.17 | 35.15 ▲1.77 |
Posts /wp-admin/edit.php | 3.80 ▲0.16 | 39.95 ▲4.37 |
Add New Post /wp-admin/post-new.php | 7.04 ▲0.06 | 94.96 ▼1,158.32 |
Media Library /wp-admin/upload.php | 3.47 ▲0.17 | 24.72 ▲1.54 |
Server storage [IO: ▲2.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 105 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Social Media Social Share Icon
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,972 ▲230 | 16.88 ▲1.22 | 12.56 ▲6.04 | 2.54 ▲0.38 |
Dashboard /wp-admin | 2,935 ▲74 | 6.27 ▲0.04 | 122.03 ▼16.58 | 174.48 ▲6.02 |
Posts /wp-admin/edit.php | 2,731 ▲37 | 2.95 ▼0.29 | 69.37 ▲5.59 | 159.40 ▲13.88 |
Add New Post /wp-admin/post-new.php | 1,695 ▲59 | 16.11 ▼3.13 | 409.37 ▼24.70 | 162.03 ▲3.85 |
Media Library /wp-admin/upload.php | 1,738 ▲40 | 5.65 ▲0.14 | 127.99 ▼9.84 | 189.97 ▲6.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-social-share/wpsocial-admin.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-social-share/wpsocial-enque-script.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/add-social-share/wpsocial-function.php:55
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: You are using too many tags: 70 tag instead of maximum 10
add-social-share/wpsocial-function.php 92% from 13 tests
The main file in "Social Media Social Share Icon" v. 3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("add-social-share.php" instead of "wpsocial-function.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected9,644 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 501 | 206 | 6,800 |
JavaScript | 4 | 102 | 8 | 1,156 |
PHP | 4 | 88 | 15 | 949 |
SVG | 2 | 0 | 0 | 739 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 9 | |
▷ Named functions | 9 | 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
76 PNG files occupy 0.80MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/facebooktheme5.png | 1.82KB | 1.18KB | ▼ 35.17% |
admin/images/linkedintheme5.png | 2.47KB | 1.68KB | ▼ 32.15% |
admin/images/linkedintheme11.png | 5.90KB | 3.28KB | ▼ 44.38% |
admin/images/pinteresttheme8.png | 5.31KB | 2.68KB | ▼ 49.44% |
admin/images/linkedintheme17.png | 2.71KB | 1.45KB | ▼ 46.37% |