Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼295.82ms] Passed 4 tests
Server-side resources used by Image Social Feed Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.17 | 55.19 ▼1.24 |
Dashboard /wp-admin | 3.51 ▲0.11 | 33.09 ▼2.31 |
Posts /wp-admin/edit.php | 3.74 ▲0.10 | 37.96 ▼8.47 |
Add New Post /wp-admin/post-new.php | 6.98 ▲0.01 | 93.53 ▼1,171.26 |
Media Library /wp-admin/upload.php | 3.39 ▲0.10 | 26.12 ▲3.63 |
Instagram Feeds /wp-admin/edit.php?post_type=wsinsta_social_feed | 3.49 | 25.31 |
Add New Instagram Feed /wp-admin/post-new.php?post_type=wsinsta_social_feed | 3.75 | 39.50 |
Server storage [IO: ▲2.54MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 49 new files
Database: no new tables, 1 new option
New WordPress options |
---|
smuzisf_plugin_version |
Browser metrics Passed 4 tests
A check of browser resources used by Image Social Feed Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,954 ▲200 | 17.75 ▲1.69 | 17.51 ▲10.39 | 2.32 ▼0.31 |
Dashboard /wp-admin | 2,922 ▲62 | 5.98 ▼0.13 | 114.63 ▼17.75 | 171.14 ▲9.57 |
Posts /wp-admin/edit.php | 2,722 ▲34 | 3.11 ▼0.14 | 64.20 ▲0.19 | 144.24 ▲3.30 |
Add New Post /wp-admin/post-new.php | 1,688 ▲27 | 18.42 ▲1.92 | 427.72 ▲12.68 | 190.04 ▲34.55 |
Media Library /wp-admin/upload.php | 1,730 ▲32 | 5.54 ▲0.02 | 123.40 ▼26.08 | 205.06 ▲23.37 |
Instagram Feeds /wp-admin/edit.php?post_type=wsinsta_social_feed | 1,422 | 3.52 | 65.52 | 136.97 |
Add New Instagram Feed /wp-admin/post-new.php?post_type=wsinsta_social_feed | 3,395 | 4.56 | 88.09 | 211.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- smuzisf_plugin_version
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
Even though everything seems fine, this is not an exhaustive test
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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=wsinsta_social_feed
- > Rendering (warning) in unknown
/wp-admin/post-new.php?post_type=wsinsta_social_feed 441 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/post-new.php?post_type=wsinsta_social_feed
- > Rendering (warning) in unknown
/wp-admin/post-new.php?post_type=wsinsta_social_feed 452 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: instagram posts, instagram pictures, instagram photos, show instagram posts, instagram social feed...
add-instagram/plugin.php 92% from 13 tests
The principal PHP file in "Image Social Feed Plugin" v. 1.7.6 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("add-instagram.php" instead of "plugin.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
Success! There were no dangerous files found in this plugin2,588 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 420 | 34 | 1,351 |
SVG | 1 | 0 | 0 | 655 |
JavaScript | 2 | 87 | 18 | 580 |
CSS | 1 | 1 | 3 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
28 PNG files occupy 1.53MB with 0.88MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/ui/images/layout4.png | 495.49KB | 118.41KB | ▼ 76.10% |
admin/ui/images/twitter.png | 1.44KB | 1.14KB | ▼ 20.92% |
admin/ui/images/slider.png | 27.08KB | 5.88KB | ▼ 78.30% |
admin/ui/images/fs-sprite.png | 1.07KB | 0.18KB | ▼ 82.82% |
admin/ui/images/facebook.png | 0.69KB | 0.49KB | ▼ 30.00% |