89% liquidpoll-mailerlite-integration

Code Review | LiquidPoll - LiquidPoll - MailerLite Integration

WordPress plugin LiquidPoll - LiquidPoll - MailerLite Integration scored 89% from 54 tests.

About plugin

  • Plugin page: liquidpoll-mailer...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 16, 2023
  • Latest release: Mar 16, 2023
  • Number of updates: 2
  • Update frequency: every 4.5 days
  • Top authors: liquidpoll (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 99 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.70ms] Passed 4 tests

This is a short check of server-side resources used by LiquidPoll - LiquidPoll - MailerLite Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.01 ▼4.77
Dashboard /wp-admin3.34 ▲0.0444.57 ▼5.51
Posts /wp-admin/edit.php3.39 ▲0.0450.29 ▲5.66
Add New Post /wp-admin/post-new.php5.92 ▲0.0482.11 ▼10.32
Media Library /wp-admin/upload.php3.27 ▲0.0435.69 ▲1.80

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for LiquidPoll - LiquidPoll - MailerLite Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▼0.201.70 ▼0.0839.53 ▼12.99
Dashboard /wp-admin2,203 ▲185.78 ▲0.9199.20 ▼0.9736.98 ▼8.39
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0440.82 ▲4.2235.53 ▲3.41
Add New Post /wp-admin/post-new.php1,538 ▲423.11 ▼0.14664.58 ▼15.4255.98 ▼5.89
Media Library /wp-admin/upload.php1,388 ▲64.26 ▲0.0895.77 ▼3.7141.63 ▼2.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
There were no plugin tags found

liquidpoll-mailerlite-integration/liquidpoll-mailerlite-integration.php 85% from 13 tests

The principal PHP file in "LiquidPoll - LiquidPoll - MailerLite Integration" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
There were no executable files found in this plugin177 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15354177

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin