Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼6.08ms] Passed 4 tests
A check of server-side resources used by SocialShop
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 41.56 ▲2.95 |
Dashboard /wp-admin | 3.49 ▲0.15 | 52.99 ▼11.53 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 50.02 ▲1.28 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 82.46 ▼17.01 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 39.26 ▲4.51 |
SocialShop /wp-admin/options-general.php?page=socialshop_settings | 3.38 | 41.56 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_instashop-gallery |
db_upgraded |
socialshop_version |
widget_recent-comments |
widget_socialshop-gallery |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SocialShop
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.69 ▲0.48 | 1.67 ▲0.09 | 44.28 ▲3.33 |
Dashboard /wp-admin | 2,215 ▲41 | 5.53 ▼0.03 | 82.73 ▼2.71 | 38.66 ▼0.72 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.10 ▲0.08 | 34.11 ▲1.39 | 30.95 ▼5.74 |
Add New Post /wp-admin/post-new.php | 1,544 ▲16 | 23.19 ▲0.09 | 664.89 ▼29.89 | 64.25 ▲5.52 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.18 ▲0.04 | 98.75 ▲0.20 | 42.95 ▲1.60 |
SocialShop /wp-admin/options-general.php?page=socialshop_settings | 903 | 1.99 | 22.02 | 29.13 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_socialshop-gallery
- widget_instashop-gallery
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: social media, socialshop, embed instagram, shopping, product gallery...
instashop/socialshop.php 85% from 13 tests
Analyzing the main PHP file in "SocialShop" version 2.1.0
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("instashop.php" instead of "socialshop.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,030 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 1,204 |
PHP | 8 | 223 | 410 | 686 |
JavaScript | 3 | 18 | 31 | 128 |
CSS | 1 | 3 | 0 | 12 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 5 | 11.11% |
▷ Public methods | 43 | 95.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.44% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
No PNG images were found in this plugin