10% userecho

Code Review | UserEcho for Wordpress

WordPress plugin UserEcho for Wordpress scored10%from 54 tests.

About plugin

  • Plugin page: userecho
  • Plugin version: 1.0.26
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.6.2
  • WordPress version: 6.3.1
  • First release: Oct 19, 2011
  • Latest release: Feb 25, 2021
  • Number of updates: 45
  • Update frequency: every 76.1 days
  • Top authors: MVR (55.56%)sstukov (46.67%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,131 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/userecho/userecho.php+464
    Methods with the same name as their class will not be constructors in a future version of PHP; UserEcho_SSO_Widget has a deprecated constructor

Server metrics [RAM: ▼5.44MB] [CPU: ▼709,111.36ms] Passed 4 tests

A check of server-side resources used by UserEcho for Wordpress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.23 ▼1.285.46 ▼38.23
Dashboard /wp-admin2.25 ▼15.646.16 ▼2,836,250.46
Posts /wp-admin/edit.php2.25 ▼1.157.40 ▼49.13
Add New Post /wp-admin/post-new.php2.25 ▼3.697.41 ▼107.62
Media Library /wp-admin/upload.php2.25 ▼1.036.97 ▼31.55

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options
UserEcho_options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_userecho_sso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for UserEcho for Wordpress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲7114.22 ▼0.127.91 ▲6.0444.95 ▲4.15
Dashboard /wp-admin2,207 ▲335.56 ▼0.0288.60 ▼0.8279.64 ▲35.88
Posts /wp-admin/edit.php2,118 ▲151.99 ▲0.0036.46 ▼6.3736.80 ▼0.77
Add New Post /wp-admin/post-new.php1,693 ▲16522.16 ▼1.07767.09 ▲90.8459.48 ▼3.35
Media Library /wp-admin/upload.php1,412 ▲94.13 ▲0.02111.70 ▲6.8775.93 ▲31.87

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/userecho/userecho.php+464
    Methods with the same name as their class will not be constructors in a future version of PHP; UserEcho_SSO_Widget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • UserEcho_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_userecho_sso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/userecho/userecho.php:27

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: ideas, helpdesk, feedback, widget, livechat...

userecho/userecho.php Passed 13 tests

The entry point to "UserEcho for Wordpress" version 1.0.26 is a PHP file that has certain tags in its header comment area
77 characters long description:
UserEcho - feedback widget to collect and manage user feedback for your blog.

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
No dangerous file extensions were detected461 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16343461

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity16.67
▷ Minimum class complexity2.00
▷ Maximum class complexity45.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1482.35%
▷ Protected methods00.00%
▷ Private methods317.65%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png0.27KB0.29KB0.00%