10% echosign

Code Review | Echo Sign

WordPress plugin Echo Sign scored10%from 54 tests.

About plugin

  • Plugin page: echosign
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 9, 2015
  • Latest release: Apr 2, 2020
  • Number of updates: 25
  • Update frequency: every 72.9 days
  • Top authors: smackcoders (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /2,357 total downloads

Benchmarks

Plugin footprint 58% 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
    • > Error in wp-content/plugins/echosign/echosign.php+72
    Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/echosign/echosign.php:72
    Stack trace:
    #0 wp-content/plugins/echosign/echosign.php(434): wp_echosign::instance()
    #1 wp-content/plugins/echosign/echosign.php(496): echosign_init()
    #2 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
    #3 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

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

This is a short check of server-side resources used by Echo Sign
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.51 ▲2.44
Dashboard /wp-admin3.31 ▼0.0445.17 ▼17.50
Posts /wp-admin/edit.php3.36 ▲0.0049.21 ▲1.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.49 ▼11.03
Media Library /wp-admin/upload.php3.23 ▲0.0034.33 ▲0.33

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Echo Sign
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.181.78 ▲0.2042.14 ▲1.87
Dashboard /wp-admin2,209 ▲244.83 ▼1.0899.41 ▼8.2439.37 ▼8.05
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0139.83 ▲5.3237.35 ▼1.59
Add New Post /wp-admin/post-new.php1,533 ▲1923.05 ▲5.60637.47 ▲22.4648.64 ▼4.51
Media Library /wp-admin/upload.php1,391 ▲64.23 ▼0.0398.39 ▼2.4841.79 ▼1.55

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'EchoSign\\Info\\AbstractCreationInfo' not found in wp-content/plugins/echosign/libs/echosign/lib/EchoSign/Info/DocumentCreationInfo.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'EchoSign\\Options\\AbstractDocumentOptions' not found in wp-content/plugins/echosign/libs/echosign/lib/EchoSign/Options/GetDocumentsOptions.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'EchoSign\\Options\\GetDocumentsOptions' not found in wp-content/plugins/echosign/libs/echosign/lib/EchoSign/Options/GetDocumentUrlsOptions.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'EchoSign\\Options\\AbstractDocumentOptions' not found in wp-content/plugins/echosign/libs/echosign/lib/EchoSign/Options/GetDocumentImageUrlsOptions.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'EchoSign\\Info\\AbstractCreationInfo' not found in wp-content/plugins/echosign/libs/echosign/lib/EchoSign/Info/WidgetCreationInfo.php:5

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 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Requires at least: The plugin version is formatted incorrectly
  • Screenshots: These screenshots require images: #1 (Wordpress Echo Sign API Key in Settings), #2 (Wordpress Echo Sign Add New Template), #3 (Wordpress Echo Sign Echo Sign Document List)
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt might help

echosign/echosign.php 92% from 13 tests

The principal PHP file in "Echo Sign" v. 1.4.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin14,348 lines of code in 63 files:
LanguageFilesBlank linesComment linesLines of code
CSS410287,924
PHP298366062,870
Sass1326241,352
LESS1326331,343
SVG100565
JavaScript28335270
Markdown118024

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity10.64
▷ Minimum class complexity1.00
▷ Maximum class complexity58.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods266
▷ Static methods186.77%
▷ Public methods25896.99%
▷ Protected methods51.88%
▷ Private methods31.13%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
3 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png13.15KB3.99KB▼ 69.68%
screenshot-2.png32.67KB9.65KB▼ 70.48%
screenshot-3.png55.28KB17.69KB▼ 68.00%