10% shogun-followers-lite

Code Review | Shogun Followers by Samurai9Design.com

WordPress plugin Shogun Followers by Samurai9Design.com scored 10% from 54 tests.

About plugin

  • Plugin page: shogun-followers-...
  • Plugin version: 0.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-4.3
  • WordPress version: 5.8.1
  • First release: Oct 22, 2015
  • Latest release: Nov 14, 2015
  • Number of updates: 20
  • Update frequency: every 1.6 days
  • Top authors: samurai9design (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 640 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼0.607.52 ▼16.79
Dashboard /wp-admin2.14 ▼0.919.17 ▼31.29
Posts /wp-admin/edit.php2.14 ▼0.977.75 ▼37.97
Add New Post /wp-admin/post-new.php2.14 ▼3.298.39 ▼755.29
Media Library /wp-admin/upload.php2.14 ▼0.878.25 ▼34.74
Settings /wp-admin/admin.php?page=shogun-followers-settings2.1413.10
Non Followers /wp-admin/admin.php?page=shogun-followers-non-followers2.148.72
New Followers /wp-admin/admin.php?page=shogun-followers-top-menu2.147.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,737 ▲16515.77 ▲0.2112.28 ▲2.9051.73 ▼0.80
Dashboard /wp-admin3,007 ▲735.88 ▼0.09144.73 ▼15.21107.46 ▼14.87
Posts /wp-admin/edit.php2,773 ▲342.82 ▲0.1272.48 ▲3.3697.29 ▲6.69
Add New Post /wp-admin/post-new.php1,894 ▲21115.15 ▼3.21417.27 ▲32.82113.05 ▼3.34
Media Library /wp-admin/upload.php1,841 ▲314.99 ▼0.02156.88 ▼14.07119.15 ▼17.94
Settings /wp-admin/admin.php?page=shogun-followers-settings1,1712.3360.66102.05
Non Followers /wp-admin/admin.php?page=shogun-followers-non-followers1,3322.3364.1195.41
New Followers /wp-admin/admin.php?page=shogun-followers-top-menu1,4222.1059.16103.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

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)
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP123671,0691,609
CSS118177
JavaScript114067

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 code0.27
Average class complexity9.24
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes29.52%
▷ Concrete classes1990.48%
▷ Final classes15.26%
Methods194
▷ Static methods2211.34%
▷ Public methods14675.26%
▷ Protected methods21.03%
▷ Private methods4623.71%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
img/sf-title.png25.23KB14.33KB▼ 43.19%
img/sf-lite-title.png32.46KB17.77KB▼ 45.24%