10% author-signature

Code Review | Author Signature

WordPress plugin Author Signature scored10%from 54 tests.

About plugin

  • Plugin page: author-signature
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 16, 2011
  • Latest release: Mar 3, 2023
  • Number of updates: 71
  • Update frequency: every 59.0 days
  • Top authors: zakirstage (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /3,600 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'WP_Plugin_Template' not found

Server metrics [RAM: ▼0.26MB] [CPU: ▼21.77ms] Passed 4 tests

An overview of server-side resources used by Author Signature
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.02 ▼8.30
Dashboard /wp-admin3.40 ▲0.0656.66 ▼15.96
Posts /wp-admin/edit.php3.52 ▲0.1656.66 ▲1.39
Add New Post /wp-admin/post-new.php4.67 ▼1.2145.86 ▼62.09
Media Library /wp-admin/upload.php3.31 ▲0.0836.71 ▼0.72

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
signature-group
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Author Signature
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲18714.41 ▼0.121.68 ▲0.0342.52 ▼3.60
Dashboard /wp-admin2,352 ▲1756.20 ▲0.50113.67 ▲22.4441.12 ▼0.45
Posts /wp-admin/edit.php2,280 ▲1803.28 ▲1.2654.27 ▲11.1633.86 ▼3.06
Add New Post /wp-admin/post-new.php1,543 ▲1523.20 ▲0.23651.21 ▲32.1936.52 ▼29.08
Media Library /wp-admin/upload.php1,420 ▲174.18 ▲0.0392.35 ▼20.1549.28 ▲4.74

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'WP_Plugin_Template' not found
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Requires at least: Version not formatted correctly
The official readme.txt might help

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

The main file in "Author Signature" v. 1.3.5 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("author-signature.php" instead of "mysignature.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin505 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP27829451
CSS20033
JavaScript14421

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity65.00
▷ Minimum class complexity65.00
▷ Maximum class complexity65.00
Average method complexity7.40
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin