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
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼313.44ms] Passed 4 tests
Server-side resources used by WP Group Promoter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.31 | 59.84 ▲2.26 |
Dashboard /wp-admin | 3.89 ▲0.49 | 38.35 ▼5.38 |
Posts /wp-admin/edit.php | 4.12 ▲0.48 | 42.55 ▲2.14 |
Add New Post /wp-admin/post-new.php | 6.14 ▼0.83 | 62.68 ▼1,248.64 |
Media Library /wp-admin/upload.php | 3.84 ▲0.54 | 28.99 ▼1.89 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 4.04 | 27.35 |
Server storage [IO: ▲3.73MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 192 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_active_plugins |
fs_gdpr |
fs_api_cache |
fs_debug_mode |
fs_accounts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Group Promoter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,908 ▲154 | 16.13 ▲0.52 | 9.82 ▲4.20 | 2.73 ▼0.74 |
Dashboard /wp-admin | 2,902 ▲41 | 6.15 ▼0.06 | 114.13 ▼10.89 | 165.36 ▲6.52 |
Posts /wp-admin/edit.php | 2,705 ▲14 | 3.23 ▲0.01 | 63.03 ▲0.63 | 152.74 ▲3.03 |
Add New Post /wp-admin/post-new.php | 1,759 ▲63 | 21.73 ▲0.40 | 403.53 ▼37.04 | 153.57 ▼4.74 |
Media Library /wp-admin/upload.php | 1,710 ▲12 | 5.52 ▲0.01 | 149.19 ▲6.68 | 196.71 ▲4.98 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 1,412 | 2.54 | 53.92 | 126.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 5 options
- fs_gdpr
- fs_active_plugins
- fs_api_cache
- fs_debug_mode
- fs_accounts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-facebook-group/public/partials/kankoz-fg-promoter-public-display.php
- > /wp-content/plugins/wp-facebook-group/freemius/templates/ajax-loader.php
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-facebook-group/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-facebook-group/admin/partials/help/help.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-facebook-group/admin/partials/kankoz-fg-promoter-admin-display.php:18
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-facebook-group/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/wp-facebook-group/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-facebook-group/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/wp-facebook-group/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/wp-facebook-group/freemius/templates/partials/network-activation.php:6
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/wp-facebook-group/freemius/templates/account/partials/addon.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-facebook-group/admin/partials/email-marketing/email-marketing.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: facebook group plugin, facebook join group button, facebook group invite widget, join facebook group
wp-facebook-group/kankoz-fg-promoter.php 85% from 13 tests
The entry point to "WP Group Promoter" version 1.0.8 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-facebook-group.php" instead of "kankoz-fg-promoter.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 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 plugin41,628 lines of code in 144 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 117 | 6,819 | 15,852 | 28,846 |
PO File | 10 | 5,710 | 6,913 | 12,558 |
JavaScript | 5 | 38 | 113 | 200 |
CSS | 12 | 2 | 8 | 24 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,609)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 72.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,609.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,121 | |
▷ Static methods | 172 | 15.34% |
▷ Public methods | 785 | 70.03% |
▷ Protected methods | 15 | 1.34% |
▷ Private methods | 321 | 28.64% |
Functions | 95 | |
▷ Named functions | 95 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 119 | |
▷ Global constants | 96 | 80.67% |
▷ Class constants | 23 | 19.33% |
▷ Public constants | 23 | 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
7 PNG files occupy 0.31MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 102.81KB | 35.69KB | ▼ 65.29% |
assets/icon-128x128.png | 2.70KB | 1.41KB | ▼ 47.86% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/icon-256x256.png | 4.93KB | 2.35KB | ▼ 52.30% |