84% client-dash-wp-help-add-on

Code Review | Client Dash WP Help Add on

WordPress plugin Client Dash WP Help Add on scored84%from 54 tests.

About plugin

  • Plugin page: client-dash-wp-he...
  • Plugin version: 0.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-3.9.2
  • WordPress version: 6.3.1
  • First release: May 30, 2014
  • Latest release: Aug 13, 2014
  • Number of updates: 9
  • Update frequency: every 8.3 days
  • Top authors: BrashRebel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,275 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by Client Dash WP Help Add on
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.57 ▼3.38
Dashboard /wp-admin3.31 ▲0.0049.01 ▼0.86
Posts /wp-admin/edit.php3.36 ▲0.0046.31 ▼5.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.68 ▼13.93
Media Library /wp-admin/upload.php3.23 ▲0.0036.31 ▲2.02

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Client Dash WP Help Add on: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.23 ▼0.062.08 ▲0.4642.34 ▼3.20
Dashboard /wp-admin2,204 ▲275.64 ▼0.2090.92 ▲2.9541.61 ▲1.92
Posts /wp-admin/edit.php2,116 ▲132.03 ▲0.0336.09 ▼3.0431.52 ▼4.13
Add New Post /wp-admin/post-new.php1,554 ▲2523.01 ▼0.11660.89 ▲4.0061.22 ▲0.99
Media Library /wp-admin/upload.php1,415 ▲154.23 ▲0.0999.35 ▼6.2443.24 ▼3.02

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/client-dash-wp-help-add-on/client-dash-wp-help.php:167

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: client, help, dashboard, portal, documentation...

client-dash-wp-help-add-on/client-dash-wp-help.php 92% from 13 tests

The main PHP script in "Client Dash WP Help Add on" version 0.3.4 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("client-dash-wp-help-add-on.php" instead of "client-dash-wp-help.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected117 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12740114
CSS1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin