10% client-status

Code Review | Client Status

WordPress plugin Client Status scored10%from 54 tests.

About plugin

  • Plugin page: client-status
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3
  • WordPress version: 6.3.1
  • First release: Jan 14, 2011
  • Latest release: Feb 1, 2012
  • Number of updates: 32
  • Update frequency: every 18.1 days
  • Top authors: ericjuden (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,131 total downloads

Benchmarks

Plugin footprint 58% 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
  • Install procedure had errors
    • > Parse error in wp-content/plugins/client-status/client-status.php+154
    syntax error, unexpected '&', expecting ')'

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.96ms] Passed 4 tests

A check of server-side resources used by Client Status
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.66 ▼0.06
Dashboard /wp-admin3.31 ▲0.0050.18 ▼0.49
Posts /wp-admin/edit.php3.36 ▲0.0053.29 ▲6.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.95 ▼14.62
Media Library /wp-admin/upload.php3.23 ▲0.0036.52 ▼0.68

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Client Status: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.75 ▲0.501.64 ▲0.0743.78 ▲1.04
Dashboard /wp-admin2,195 ▲185.52 ▼0.1480.78 ▼9.7938.52 ▼2.78
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0339.06 ▲2.2635.55 ▲1.45
Add New Post /wp-admin/post-new.php1,541 ▲1323.19 ▲0.03670.94 ▼34.2977.93 ▲22.87
Media Library /wp-admin/upload.php1,403 ▼04.16 ▼0.0294.46 ▼4.8646.48 ▲2.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/client-status/data.php
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected '&', expecting ')' in wp-content/plugins/client-status/client-status.php on line 154
    • > PHP Warning
      Use of undefined constant CLIENT_STATUS_INSTALL_TYPE_DASHBOARD - assumed 'CLIENT_STATUS_INSTALL_TYPE_DASHBOARD' (this will throw an Error in a future version of PHP) in wp-content/plugins/client-status/client-status-options.php on line 7
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/client-status/constants.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/client-status/client-status-options.php:25
    • > PHP Parse error
      syntax error, unexpected '&', expecting ')' in wp-content/plugins/client-status/dashboard.php on line 77
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/client-status/constants.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (The dashboard screen.), #2 (The edit client screen.), #3 (The dashboard settings page.), #4 (The client settings page.)
The official readme.txt might help

client-status/client-status.php 92% from 13 tests

Analyzing the main PHP file in "Client Status" version 1.3.3
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 164 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin987 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP510627835
CSS116152

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants22100.00%
▷ Class constants00.00%
▷ Public constants00.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
16 PNG files occupy 0.22MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png45.68KB22.52KB▼ 50.69%
images/accept.png0.76KB0.81KB0.00%
screenshot-2.png64.56KB27.82KB▼ 56.91%
images/status_online.png0.71KB0.76KB0.00%
images/arrow_refresh.png0.67KB0.72KB0.00%