90% fine-dashboard-client

Code Review | Fine Dashboard - Client

WordPress plugin Fine Dashboard - Client scored90%from 54 tests.

About plugin

  • Plugin page: fine-dashboard-cl...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.0
  • WordPress version: 6.3.1
  • First release: Aug 11, 2022
  • Latest release: Aug 11, 2022
  • Number of updates: 3
  • Update frequency: every 2.7 days
  • Top authors: lukeketchen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /272 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼4.40ms] Passed 4 tests

Analyzing server-side resources used by Fine Dashboard - Client
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.51 ▼5.94
Dashboard /wp-admin3.24 ▼0.0637.03 ▼9.82
Posts /wp-admin/edit.php3.37 ▲0.0247.95 ▲1.58
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.52 ▼3.41
Media Library /wp-admin/upload.php3.24 ▲0.0235.05 ▲2.64
Fine Dashboard - Client /wp-admin/options-general.php?page=fine-dashboard-client-page3.2129.91

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Fine Dashboard - Client: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,040 ▼73113.96 ▼0.411.81 ▼0.1341.16 ▼1.63
Dashboard /wp-admin1,445 ▼7435.27 ▲0.3581.31 ▼30.7642.06 ▼0.20
Posts /wp-admin/edit.php2,093 ▲11.97 ▼0.0739.08 ▼3.1736.81 ▲1.57
Add New Post /wp-admin/post-new.php1,526 ▼023.18 ▼0.06651.29 ▲5.8857.00 ▲1.23
Media Library /wp-admin/upload.php1,395 ▲74.22 ▼0.02108.47 ▲12.5446.64 ▲6.34
Fine Dashboard - Client /wp-admin/options-general.php?page=fine-dashboard-client-page8282.0325.0426.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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
These attributes need your attention: Please take inspiration from this readme.txt

fine-dashboard-client/fine-dashboard-client.php Passed 13 tests

The primary PHP file in "Fine Dashboard - Client" version 1.0 is used by WordPress to initiate all plugin functionality
39 characters long description:
Edit the Dashboard to show custom data.

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
Success! There were no dangerous files found in this plugin268 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14548208
Markdown127040
CSS15120

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity9.50
▷ Minimum class complexity6.00
▷ Maximum class complexity13.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods1794.44%
▷ Protected methods00.00%
▷ Private methods15.56%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon.png11.20KB5.16KB▼ 53.88%