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.02MB] [CPU: ▼0.63ms] Passed 4 tests
An overview of server-side resources used by Shoppable Social Media Galleries by Sauce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 39.71 ▲3.81 |
Dashboard /wp-admin | 3.33 ▲0.02 | 48.91 ▲0.50 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.98 ▲0.21 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 80.31 ▼7.03 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 38.51 ▲4.42 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Shoppable Social Media Galleries by Sauce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.35 ▼0.21 | 1.74 ▲0.18 | 43.47 ▲1.31 |
Dashboard /wp-admin | 2,203 ▲26 | 5.53 ▼0.04 | 83.58 ▼0.54 | 67.46 ▲24.31 |
Posts /wp-admin/edit.php | 2,117 ▲14 | 1.97 ▲0.00 | 33.98 ▼4.22 | 33.43 ▼2.25 |
Add New Post /wp-admin/post-new.php | 1,697 ▲171 | 22.01 ▼1.13 | 732.22 ▲84.20 | 56.62 ▲9.31 |
Media Library /wp-admin/upload.php | 1,420 ▲17 | 4.21 ▼0.03 | 111.15 ▲13.59 | 74.79 ▲28.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: There are too many tags (15 tag instead of maximum 10)
shop-feed-for-instagram-by-snapppt/snapppt.php 92% from 13 tests
Analyzing the main PHP file in "Shoppable Social Media Galleries by Sauce" version 1.1.13
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("shop-feed-for-instagram-by-snapppt.php" instead of "snapppt.php")
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 plugin469 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 70 | 39 | 179 |
CSS | 2 | 26 | 0 | 144 |
HTML | 1 | 20 | 1 | 103 |
JavaScript | 1 | 7 | 1 | 29 |
SVG | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.23MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/snapppt-logo-square-small.png | 0.50KB | 0.40KB | ▼ 20.82% |
images/snapppt-logo-square.png | 3.21KB | 1.45KB | ▼ 54.70% |
images/snapppt-notice-background.png | 235.15KB | 99.70KB | ▼ 57.60% |