84% werecover-wendi

Code Review | WeRecover Wendi

WordPress plugin WeRecover Wendi scored84%from 54 tests.

About plugin

  • Plugin page: werecover-wendi
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-6.1
  • WordPress version: 6.3.1
  • First release: Jun 9, 2020
  • Latest release: Nov 18, 2022
  • Number of updates: 6
  • Update frequency: every 149.8 days
  • Top authors: werecover (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,079 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼12.19ms] Passed 4 tests

An overview of server-side resources used by WeRecover Wendi
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.37 ▼5.50
Dashboard /wp-admin3.32 ▼0.0348.87 ▼17.25
Posts /wp-admin/edit.php3.37 ▲0.0151.71 ▼5.38
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.06 ▼20.63
Media Library /wp-admin/upload.php3.24 ▲0.0135.20 ▼2.99

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WeRecover Wendi
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.67 ▲0.441.98 ▲0.3544.28 ▲0.41
Dashboard /wp-admin2,195 ▲185.61 ▼0.0591.55 ▼17.9040.71 ▼4.34
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0438.59 ▼3.8535.86 ▼11.45
Add New Post /wp-admin/post-new.php1,526 ▼023.00 ▲0.10683.06 ▲7.5254.63 ▲1.73
Media Library /wp-admin/upload.php1,400 ▲34.24 ▲0.0195.00 ▼28.5042.57 ▼4.04

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

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

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/werecover-wendi/werecover-wendi.php:20

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: chat widget, addiction

werecover-wendi/werecover-wendi.php Passed 13 tests

The main file in "WeRecover Wendi" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
72 characters long description:
WeRecover Wendi automated messaging UI integration with wordpress sites.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin49 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191549

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin