74% wp-lemme-know

Code Review | Lemme Know

WordPress plugin Lemme Know scored74%from 54 tests.

About plugin

  • Plugin page: wp-lemme-know
  • Plugin version: 0.10.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Nov 10, 2016
  • Latest release: Oct 25, 2023
  • Number of updates: 48
  • Update frequency: every 52.8 days
  • Top authors: clash82 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,449 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼1.46ms] Passed 4 tests

Server-side resources used by Lemme Know
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1437.78 ▼1.16
Dashboard /wp-admin3.50 ▲0.1551.11 ▼8.83
Posts /wp-admin/edit.php3.62 ▲0.2647.30 ▲1.98
Add New Post /wp-admin/post-new.php6.10 ▲0.2198.16 ▲2.96
Media Library /wp-admin/upload.php3.43 ▲0.1937.05 ▲2.19
Lemme Know /wp-admin/options-general.php?page=wp-lemme-know3.4132.35

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 22 new files
Database: 1 new table, 8 new options
New tables
wp_lemme_know_subscribers
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
wp_lemme_know_options
can_compress_scripts
widget_theysaidso_widget
widget_lemmeknowwidget

Browser metrics Passed 4 tests

Checking browser requirements for Lemme Know
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲10314.23 ▼0.422.03 ▲0.3644.91 ▼0.73
Dashboard /wp-admin2,238 ▲615.64 ▼0.0393.76 ▲3.3341.56 ▼0.63
Posts /wp-admin/edit.php2,110 ▲101.98 ▼0.0337.48 ▲1.1234.03 ▼0.80
Add New Post /wp-admin/post-new.php1,544 ▲1818.14 ▼5.01595.61 ▼77.4272.58 ▲9.14
Media Library /wp-admin/upload.php1,404 ▲44.15 ▼0.0693.71 ▼15.7340.95 ▼5.68
Lemme Know /wp-admin/options-general.php?page=wp-lemme-know8252.0023.9725.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/wp-lemme-know/src/setup.php+79
    preg_match(): Delimiter must not be alphanumeric or backslash
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_lemmeknowwidget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 items
  • 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: fieldSettings in wp-content/plugins/wp-lemme-know/templates/widget.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/wp-lemme-know/templates/widget.php:24
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-lemme-know/templates/widget.php on line 11
    • > PHP Notice
      Undefined variable: fieldSettings in wp-content/plugins/wp-lemme-know/templates/widget.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-lemme-know/templates/dashboard.php:1
    • > PHP Notice
      Undefined variable: fieldSettings in wp-content/plugins/wp-lemme-know/templates/widget.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-lemme-know/templates/email_body.php:1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-lemme-know/templates/widget.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-lemme-know/templates/widget.php on line 16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-lemme-know/templates/widget.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: newsletter, smtp, mailing, email, subscribe2...

wp-lemme-know/plugin.php 92% from 13 tests

The main PHP file in "Lemme Know" ver. 0.10.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-lemme-know.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,590 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP142221701,193
JavaScript26984242
CSS3231154
SVG1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity7.00
▷ Minimum class complexity6.00
▷ Maximum class complexity8.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions49
▷ Named functions4489.80%
▷ Anonymous functions510.20%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected