84% fine-dashboard-source

Code Review | Fine Dashboard - Source

WordPress plugin Fine Dashboard - Source scored84%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /270 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼12.88ms] Passed 4 tests

An overview of server-side resources used by Fine Dashboard - Source
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.56 ▼6.63
Dashboard /wp-admin3.34 ▼0.0144.66 ▼18.68
Posts /wp-admin/edit.php3.39 ▲0.0345.59 ▲0.81
Add New Post /wp-admin/post-new.php5.99 ▲0.1189.04 ▼22.68
Media Library /wp-admin/upload.php3.26 ▲0.0330.42 ▼3.51
Widgets /wp-admin/edit.php?post_type=fdbscpt_widget3.3033.00
Add Widget /wp-admin/post-new.php?post_type=fdbscpt_widget5.9878.65

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Fine Dashboard - Source: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲10913.60 ▼0.981.75 ▼0.1239.83 ▼4.83
Dashboard /wp-admin2,233 ▲425.89 ▼0.02108.17 ▲3.4337.83 ▼6.16
Posts /wp-admin/edit.php2,113 ▲242.04 ▲0.0238.87 ▼3.5639.92 ▲1.36
Add New Post /wp-admin/post-new.php1,565 ▲3718.31 ▼0.02612.38 ▼38.2052.35 ▼4.99
Media Library /wp-admin/upload.php1,415 ▲304.24 ▲0.0395.44 ▼11.8140.05 ▼2.96
Widgets /wp-admin/edit.php?post_type=fdbscpt_widget1,0842.0034.0533.49
Add Widget /wp-admin/post-new.php?post_type=fdbscpt_widget6,17419.22871.9030.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/fine-dashboard-source/modules/tools_page.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

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

"Fine Dashboard - Source" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
38 characters long description:
Create a source for the Fine Dashboard

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected179 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22824139
Markdown127040

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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%