83% danixland-author-signature

Code Review | danixland author signature

WordPress plugin danixland author signature scored 83% from 54 tests.

About plugin

  • Plugin page: danixland-author-...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 5.9.2
  • First release: Mar 25, 2016
  • Latest release: Nov 5, 2020
  • Number of updates: 10
  • Update frequency: every 168.6 days
  • Top authors: danixland (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,100 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by danixland author signature
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0656.96 ▲4.18
Dashboard /wp-admin3.46 ▲0.0533.53 ▼6.96
Posts /wp-admin/edit.php3.68 ▲0.0436.71 ▼2.90
Add New Post /wp-admin/post-new.php6.92 ▼0.0596.55 ▼1,155.49
Media Library /wp-admin/upload.php3.34 ▲0.0425.41 ▲0.07
Author Signature /wp-admin/options-general.php?page=dnxasi3.2822.26

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by danixland author signature
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲4616.24 ▲0.566.01 ▼0.322.68 ▼0.34
Dashboard /wp-admin2,897 ▲396.22 ▲0.05118.34 ▼19.71155.18 ▼9.43
Posts /wp-admin/edit.php2,690 ▲23.24 ▼0.0060.96 ▼3.21142.05 ▲0.27
Add New Post /wp-admin/post-new.php1,658 ▼1020.34 ▲2.21403.41 ▲5.82157.04 ▲0.84
Media Library /wp-admin/upload.php1,703 ▲85.53 ▼0.01147.01 ▲5.59193.75 ▲9.33
Author Signature /wp-admin/options-general.php?page=dnxasi1,0912.5054.80129.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=dnxasi
    • > Notice in wp-content/plugins/danixland-author-signature/inc/dnxasi-settings.php+83
    Trying to access array offset on value of type bool

SRP 0% 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 items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/danixland-author-signature/danixland-author-signature.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/danixland-author-signature/inc/dnxasi-settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: signature, post, author, custom

danixland-author-signature/danixland-author-signature.php 92% from 13 tests

The entry point to "danixland author signature" version 1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin308 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP45145178
PO File1202173
CSS10029
JavaScript1101028

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/signature-left.png1.44KB0.59KB▼ 58.71%
img/signature-right.png1.44KB0.60KB▼ 58.60%
img/placeholder.png25.97KB10.05KB▼ 61.29%
img/signature-center.png1.48KB0.60KB▼ 59.11%