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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.33MB] [CPU: ▼7.70ms] Passed 4 tests
Server-side resources used by Cresta Social Share Counter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 41.29 ▲0.88 |
Dashboard /wp-admin | 3.66 ▲0.32 | 51.44 ▼10.14 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 45.42 ▼0.87 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 83.65 ▼20.66 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 36.52 ▲3.68 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, 42 new options
New WordPress options |
---|
cresta_social_shares_float |
cresta_social_shares_disable_mobile |
cresta_social_shares_linkedin_alternative_count |
cresta_social_shares_enable_animation |
cresta_social_shares_enable_shadow |
selected_button |
cresta_social_shares_selected_page |
cresta_social_shares_google_font |
cresta_social_shares_position_left |
cresta_social_shares_twitter_new_logo |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Cresta Social Share Counter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲42 | 14.32 ▼0.03 | 1.78 ▲0.02 | 42.21 ▼1.88 |
Dashboard /wp-admin | 2,210 ▲41 | 5.62 ▲0.06 | 98.25 ▲1.08 | 41.38 ▼0.69 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.94 ▼0.07 | 37.24 ▼0.88 | 33.77 ▲0.58 |
Add New Post /wp-admin/post-new.php | 6,234 ▲4,708 | 18.97 ▼4.25 | 883.99 ▲235.13 | 56.46 ▲5.13 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.20 ▲0.00 | 98.32 ▲2.50 | 40.58 ▼3.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- cresta_social_shares_linkedin_alternative_count
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cresta-social-share-counter/uninstall.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Too many tags (28 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Add images for these screenshots: #1 (Cresta Social Share Counter Settings Page 1), #2 (Cresta Social Share Counter Settings Page 2), #3 (Floating social buttons with social count), #4 (Social buttons before/after posts/page content)
cresta-social-share-counter/cresta-social-share-counter.php 92% from 13 tests
The entry point to "Cresta Social Share Counter" version 2.9.9.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 311 characters long)
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
There were no executable files found in this plugin2,661 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 90 | 31 | 1,453 |
CSS | 7 | 13 | 39 | 707 |
JavaScript | 6 | 6 | 16 | 348 |
PO File | 1 | 40 | 42 | 109 |
SVG | 2 | 18 | 1 | 39 |
XML | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 17.00 |
▷ Minimum method complexity | 14.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 51 | |
▷ Named functions | 51 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
19 compressed PNG files occupy 0.27MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cresta-social-share-counter-style-17.png | 0.32KB | 0.33KB | 0.00% |
images/cresta-social-share-counter-style-5.png | 1.29KB | 1.30KB | 0.00% |
images/by-cr-social.png | 0.21KB | 0.21KB | 0.00% |
images/no-image-found.png | 2.40KB | 2.01KB | ▼ 16.30% |
images/cresta-social-share-counter-style-4.png | 0.53KB | 0.54KB | 0.00% |