Benchmarks
Plugin footprint 39% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/my-instagram-feed/includes/mif-helper-functions.php+21
Trying to access array offset on value of type bool
Server metrics [RAM: ▲5.43MB] [CPU: ▲27.06ms] 75% from 4 tests
An overview of server-side resources used by Easy Social Photos Gallery - MIF
Please have a look at the following items
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.43MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.20 ▲5.74 | 66.95 ▲25.18 |
Dashboard /wp-admin | 9.22 ▲5.92 | 82.03 ▲29.81 |
Posts /wp-admin/edit.php | 9.22 ▲5.87 | 76.72 ▲23.30 |
Add New Post /wp-admin/post-new.php | 10.10 ▲4.22 | 122.66 ▲29.93 |
Media Library /wp-admin/upload.php | 9.22 ▲5.99 | 79.10 ▲41.93 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.22 | 62.69 |
Server storage [IO: ▲4.99MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/my-instagram-feed/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 283 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_active_plugins |
mif_settings |
can_compress_scripts |
fs_debug_mode |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
fs_accounts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Social Photos Gallery - MIF
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲207 | 13.65 ▼0.69 | 5.67 ▲3.83 | 29.56 ▼17.32 |
Dashboard /wp-admin | 2,242 ▲42 | 5.84 ▼0.04 | 112.65 ▲2.70 | 77.24 ▲35.81 |
Posts /wp-admin/edit.php | 2,141 ▲44 | 2.01 ▼0.02 | 36.58 ▲0.38 | 37.65 ▲1.79 |
Add New Post /wp-admin/post-new.php | 1,554 ▲14 | 21.97 ▲3.76 | 723.96 ▲115.67 | 52.31 ▼5.97 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.14 ▼0.11 | 105.31 ▲1.48 | 85.53 ▲43.45 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,105 | 1.69 | 25.45 | 26.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/my-instagram-feed/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 10 options in the database
- fs_active_plugins
- fs_accounts
- db_upgraded
- theysaidso_admin_options
- fs_debug_mode
- widget_theysaidso_widget
- can_compress_scripts
- mif_settings
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following items
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/my-instagram-feed/frontend/assets/css/my-instagram-feed-customizer-style.css.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/my-instagram-feed/frontend/views/html-feed-footer.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/my-instagram-feed/frontend/views/html-post-header.php:3
- > PHP Warning
include(ABSPATH/wp-load.php): failed to open stream: No such file or directory in wp-content/plugins/my-instagram-feed/frontend/assets/css/my-instagram-feed-customizer-style.css.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/my-instagram-feed/frontend/views/html-feed-header.php:5
- > PHP Warning
include(): Failed opening 'ABSPATH/wp-load.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/my-instagram-feed/frontend/assets/css/my-instagram-feed-customizer-style.css.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function mif_get_setting() in wp-content/plugins/my-instagram-feed/frontend/views/feed.php:14
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (20 tag instead of maximum 10)
- Screenshots: Add descriptions for screenshots #10, #11, #12, #8, #9 in my-instagram-feed/assets to your readme.txt
my-instagram-feed/my-instagram-feed.php 92% from 13 tests
The entry point to "Easy Social Photos Gallery - MIF" version 3.1.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 391 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin47,087 lines of code in 225 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 137 | 9,140 | 17,982 | 38,181 |
Sass | 52 | 2,604 | 341 | 6,669 |
JavaScript | 11 | 739 | 609 | 1,857 |
Markdown | 1 | 68 | 0 | 214 |
CSS | 23 | 16 | 27 | 135 |
SVG | 1 | 1 | 0 | 31 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 77.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 60 | |
▷ Abstract classes | 2 | 3.33% |
▷ Concrete classes | 58 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 1,313 | |
▷ Static methods | 197 | 15.00% |
▷ Public methods | 924 | 70.37% |
▷ Protected methods | 17 | 1.29% |
▷ Private methods | 372 | 28.33% |
Functions | 118 | |
▷ Named functions | 112 | 94.92% |
▷ Anonymous functions | 6 | 5.08% |
Constants | 150 | |
▷ Global constants | 103 | 68.67% |
▷ Class constants | 47 | 31.33% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/plugin_icon.png | 0.70KB | 0.69KB | ▼ 1.40% |
frontend/assets/images/esf-insta-video-placeholder.png | 9.72KB | 1.11KB | ▼ 88.54% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
admin/assets/images/insta-logo.png | 1.82KB | 1.48KB | ▼ 18.65% |