10% wpsupervisor-client

Code Review | WPSupervisor Client

WordPress plugin WPSupervisor Client scored10%from 54 tests.

About plugin

  • Plugin page: wpsupervisor-client
  • Plugin version: 1.1.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 15, 2013
  • Latest release: Apr 9, 2013
  • Number of updates: 13
  • Update frequency: every 1.9 days
  • Top authors: Profit Marketer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,112 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/wpsupervisor-client/api.php+37
    count(): Parameter must be an array or an object that implements Countable

Server metrics [RAM: ▼0.67MB] [CPU: ▼42.00ms] Passed 4 tests

A check of server-side resources used by WPSupervisor Client
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.32 ▼0.1415.02 ▼27.51
Dashboard /wp-admin3.34 ▲0.0314.21 ▼34.99
Posts /wp-admin/edit.php3.34 ▼0.0215.16 ▼34.04
Add New Post /wp-admin/post-new.php3.34 ▼2.5517.12 ▼71.46
Media Library /wp-admin/upload.php3.34 ▲0.1113.34 ▼25.15

Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 9 new options
New WordPress options
manage-multiple-blogs
iwp_client_user_hit_count
widget_recent-posts
widget_recent-comments
iwp_client_activate_key
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WPSupervisor Client
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲10513.39 ▼1.191.99 ▲0.2230.96 ▼15.04
Dashboard /wp-admin2,243 ▲555.79 ▲0.7396.05 ▼21.8442.23 ▼3.52
Posts /wp-admin/edit.php2,119 ▲302.01 ▼0.0140.44 ▲3.4940.39 ▲3.46
Add New Post /wp-admin/post-new.php1,545 ▲1217.69 ▼5.69611.54 ▼92.0561.22 ▲6.83
Media Library /wp-admin/upload.php1,422 ▲374.22 ▲0.0195.58 ▼14.0643.18 ▼3.24

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/wpsupervisor-client/api.php+37
    count(): Parameter must be an array or an object that implements Countable
  • This plugin does not fully uninstall, leaving 8 options in the database
    • can_compress_scripts
    • manage-multiple-blogs
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • iwp_client_user_hit_count

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'IWP_MMB_Core' not found in wp-content/plugins/wpsupervisor-client/installer.class.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'IWP_MMB_Backup' not found in wp-content/plugins/wpsupervisor-client/addons/backup_repository/backup_repository.class.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'IWP_MMB_Core' not found in wp-content/plugins/wpsupervisor-client/backup.class.php:63
    • > PHP Fatal error
      Uncaught Error: Class 'CFRuntime' not found in wp-content/plugins/wpsupervisor-client/lib/amazon_s3/services/s3.class.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpsupervisor-client/plugins/extra_html_example/extra_html_example.php:10
    • > PHP Warning
      Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpsupervisor-client/backup.class.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function iwp_mmb_add_action() in wp-content/plugins/wpsupervisor-client/plugins/search/search.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'ResponseCore' not found in wp-content/plugins/wpsupervisor-client/lib/amazon_s3/utilities/response.class.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'IWP_MMB_Core' not found in wp-content/plugins/wpsupervisor-client/addons/manage_users/user.class.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'RequestCore' not found in wp-content/plugins/wpsupervisor-client/lib/amazon_s3/utilities/request.class.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 27 tag instead of maximum 10
The official readme.txt is a good inspiration

wpsupervisor-client/wps-client.php 92% from 13 tests

The primary PHP file in "WPSupervisor Client" version 1.1.10 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wpsupervisor-client.php" instead of "wps-client.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin14,662 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP333,5976,70714,654
Markdown1708

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity68.00
▷ Minimum class complexity1.00
▷ Maximum class complexity559.00
Average method complexity6.36
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes40
▷ Abstract classes00.00%
▷ Concrete classes40100.00%
▷ Final classes00.00%
Methods500
▷ Static methods142.80%
▷ Public methods49498.80%
▷ Protected methods20.40%
▷ Private methods40.80%
Functions82
▷ Named functions82100.00%
▷ Anonymous functions00.00%
Constants155
▷ Global constants8051.61%
▷ Class constants7548.39%
▷ Public constants75100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin