Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/shogun-followers-lite/shogun-followers-lite.php+88
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.51MB] [CPU: ▼214.82ms] Passed 4 tests
Analyzing server-side resources used by Shogun Followers by Samurai9Design.com
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼0.60 | 7.52 ▼16.79 |
Dashboard /wp-admin | 2.14 ▼0.91 | 9.17 ▼31.29 |
Posts /wp-admin/edit.php | 2.14 ▼0.97 | 7.75 ▼37.97 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.29 | 8.39 ▼755.29 |
Media Library /wp-admin/upload.php | 2.14 ▼0.87 | 8.25 ▼34.74 |
Settings /wp-admin/admin.php?page=shogun-followers-settings | 2.14 | 13.10 |
Non Followers /wp-admin/admin.php?page=shogun-followers-non-followers | 2.14 | 8.72 |
New Followers /wp-admin/admin.php?page=shogun-followers-top-menu | 2.14 | 7.60 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 2 new options
New WordPress options |
---|
shogun-followers-new_followers |
shogun-followers-account |
Browser metrics Passed 4 tests
A check of browser resources used by Shogun Followers by Samurai9Design.com
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,737 ▲165 | 15.77 ▲0.21 | 12.28 ▲2.90 | 51.73 ▼0.80 |
Dashboard /wp-admin | 3,007 ▲73 | 5.88 ▼0.09 | 144.73 ▼15.21 | 107.46 ▼14.87 |
Posts /wp-admin/edit.php | 2,773 ▲34 | 2.82 ▲0.12 | 72.48 ▲3.36 | 97.29 ▲6.69 |
Add New Post /wp-admin/post-new.php | 1,894 ▲211 | 15.15 ▼3.21 | 417.27 ▲32.82 | 113.05 ▼3.34 |
Media Library /wp-admin/upload.php | 1,841 ▲31 | 4.99 ▼0.02 | 156.88 ▼14.07 | 119.15 ▼17.94 |
Settings /wp-admin/admin.php?page=shogun-followers-settings | 1,171 | 2.33 | 60.66 | 102.05 |
Non Followers /wp-admin/admin.php?page=shogun-followers-non-followers | 1,332 | 2.33 | 64.11 | 95.41 |
New Followers /wp-admin/admin.php?page=shogun-followers-top-menu | 1,422 | 2.10 | 59.16 | 103.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/shogun-followers-lite/shogun-followers-lite.php+88
Trying to access array offset on value of type bool
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 22 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shogun-followers-top-menu
- > Notice in wp-content/plugins/shogun-followers-lite/class.SF_Followers.php+71
Trying to access array offset on value of type bool
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shogun-followers-top-menu
- > Notice in wp-content/plugins/shogun-followers-lite/class.SF_Options.php+94
Accessing static property SF_Options::$settings as non static
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shogun-followers-top-menu
- > Notice in wp-content/plugins/shogun-followers-lite/class.SF_Options.php+94
Accessing static property SF_Options::$account as non static
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shogun-followers-top-menu
- > Notice in wp-content/plugins/shogun-followers-lite/class.SF_Followers.php+71
Accessing static property SF_Options::$followers as non static
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shogun-followers-top-menu
- > Notice in wp-content/plugins/shogun-followers-lite/class.SF_Followers.php+79
Accessing static property SF_Options::$new_followers as non static
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shogun-followers-top-menu
- > Notice in wp-content/plugins/shogun-followers-lite/class.SF_Followers.php+346
Accessing static property SF_Options::$non_followers as non static
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shogun-followers-top-menu
- > Notice in wp-content/plugins/shogun-followers-lite/class.SF_Options.php+94
Accessing static property SF_Options::$non_followers_exceptions as non static
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shogun-followers-top-menu
- > Notice in wp-content/plugins/shogun-followers-lite/class.SF_Options.php+124
Accessing static property SF_Options::$new_followers_check as non static
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shogun-followers-top-menu
- > Warning in wp-content/plugins/shogun-followers-lite/class.SF_Followers.php+63
Creating default object from empty value
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shogun-followers-top-menu
- > Notice in wp-content/plugins/shogun-followers-lite/twitterAR/twitterAR.php+87
Undefined property: stdClass::$resources
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shogun-followers-top-menu
- > Notice in wp-content/plugins/shogun-followers-lite/twitterAR/twitterAR.php+87
Trying to get property 'friends' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shogun-followers-top-menu
- > Notice in wp-content/plugins/shogun-followers-lite/twitterAR/twitterAR.php+116
Trying to get property '/friends/ids' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shogun-followers-top-menu
- > Notice in wp-content/plugins/shogun-followers-lite/twitterAR/twitterAR.php+116
Trying to get property 'remaining' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shogun-followers-top-menu
- > Notice in wp-content/plugins/shogun-followers-lite/shogun-followers-lite.php+145
Undefined property: stdClass::$followers_count
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shogun-followers-top-menu
- > Notice in wp-content/plugins/shogun-followers-lite/shogun-followers-lite.php+146
Undefined property: stdClass::$friends_count
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shogun-followers-top-menu
- > Notice in wp-content/plugins/shogun-followers-lite/shogun-followers-lite.php+154
Undefined property: stdClass::$name
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shogun-followers-top-menu
- > Notice in wp-content/plugins/shogun-followers-lite/shogun-followers-lite.php+155
Undefined property: stdClass::$screen_name
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shogun-followers-top-menu
- > Notice in wp-content/plugins/shogun-followers-lite/shogun-followers-lite.php+169
Undefined property: stdClass::$profile_image_url_big
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/shogun-followers-lite/shogun-followers-lite.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shogun-followers-lite/class.SF_Table.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/shogun-followers-lite/class.SF_Table.php on line 11
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/shogun-followers-lite/class.SF_Table.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
Please fix the following attributes:
- Tags: There are too many tags (16 tag instead of maximum 10)
shogun-followers-lite/shogun-followers-lite.php 92% from 13 tests
The principal PHP file in "Shogun Followers by Samurai9Design.com" v. 0.1.4 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)
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
There were no executable files found in this plugin1,753 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 367 | 1,069 | 1,609 |
CSS | 1 | 18 | 1 | 77 |
JavaScript | 1 | 14 | 0 | 67 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 2 | 9.52% |
▷ Concrete classes | 19 | 90.48% |
▷ Final classes | 1 | 5.26% |
Methods | 194 | |
▷ Static methods | 22 | 11.34% |
▷ Public methods | 146 | 75.26% |
▷ Protected methods | 2 | 1.03% |
▷ Private methods | 46 | 23.71% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/sf-title.png | 25.23KB | 14.33KB | ▼ 43.19% |
img/sf-lite-title.png | 32.46KB | 17.77KB | ▼ 45.24% |