84% client-dash-status-cake-add-on

Code Review | Client Dash Status Cake Add on

WordPress plugin Client Dash Status Cake Add on scored84%from 54 tests.

About plugin

  • Plugin page: client-dash-statu...
  • Plugin version: 0.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-3.9.2
  • WordPress version: 6.3.1
  • First release: Jul 25, 2014
  • Latest release: Aug 13, 2014
  • Number of updates: 7
  • Update frequency: every 2.7 days
  • Top authors: BrashRebel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,461 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Client Dash Status Cake Add on
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.60 ▼1.60
Dashboard /wp-admin3.31 ▲0.0151.74 ▼2.63
Posts /wp-admin/edit.php3.36 ▲0.0047.11 ▼2.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.13 ▲1.15
Media Library /wp-admin/upload.php3.23 ▲0.0036.23 ▼2.33

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Client Dash Status Cake Add on
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.34 ▼0.211.67 ▼0.1143.16 ▼4.19
Dashboard /wp-admin2,204 ▲275.65 ▲0.0493.30 ▲2.8841.68 ▼5.28
Posts /wp-admin/edit.php2,110 ▲101.98 ▼0.0535.75 ▲0.4034.82 ▼3.28
Add New Post /wp-admin/post-new.php1,549 ▲1417.87 ▼0.31625.05 ▼41.7868.79 ▲5.02
Media Library /wp-admin/upload.php1,415 ▲184.17 ▼0.03103.07 ▼1.4245.95 ▲2.40

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 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-status-cake-add-on/client-dash-status-cake.php:257

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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
5 plugin tags: admin, portal, client, dashboard, reporting

client-dash-status-cake-add-on/client-dash-status-cake.php 92% from 13 tests

The main PHP script in "Client Dash Status Cake Add on" version 0.2.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("client-dash-status-cake-add-on.php" instead of "client-dash-status-cake.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin253 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13323215
CSS10138

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity5.60
▷ Minimum method complexity1.00
▷ Maximum method complexity18.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 were not PNG files found in your plugin