84% dashboard-signature

Code Review | Dashboard.Signature

WordPress plugin Dashboard.Signature scored84%from 54 tests.

About plugin

  • Plugin page: dashboard-signature
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 4, 2021
  • Latest release: Oct 4, 2021
  • Number of updates: 2
  • Update frequency: every 4.5 days
  • Top authors: dancruzat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /290 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Dashboard.Signature
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.10 ▼6.07
Dashboard /wp-admin3.33 ▲0.0348.02 ▼4.75
Posts /wp-admin/edit.php3.38 ▲0.0252.20 ▲0.03
Add New Post /wp-admin/post-new.php5.91 ▲0.0397.63 ▼10.25
Media Library /wp-admin/upload.php3.26 ▲0.0339.90 ▲3.58
Dash.Sig /wp-admin/options-general.php?page=dash-sig3.2229.22

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Dashboard.Signature: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲3013.30 ▼1.261.82 ▼0.1641.28 ▼0.63
Dashboard /wp-admin2,210 ▲224.86 ▲0.00108.51 ▲1.8535.65 ▼7.93
Posts /wp-admin/edit.php2,090 ▲12.06 ▲0.0438.72 ▲4.0831.03 ▼9.06
Add New Post /wp-admin/post-new.php1,535 ▲1623.16 ▲0.17647.56 ▼8.9067.28 ▲2.39
Media Library /wp-admin/upload.php1,392 ▲74.27 ▲0.04101.55 ▼16.1841.42 ▼7.84
Dash.Sig /wp-admin/options-general.php?page=dash-sig7942.0626.3325.65

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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 take a closer look at 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/dashboard-signature/dash-sig.php:28

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Dashboard w/ custom footer) image required
Please take inspiration from this readme.txt

dashboard-signature/dash-sig.php 92% from 13 tests

The main file in "Dashboard.Signature" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dashboard-signature.php" instead of "dash-sig.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin72 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2132572

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-01.png94.68KB28.33KB▼ 70.07%