89% liquidpoll-funnelkit-integration

Code Review | LiquidPoll - Funnelkit Integration

WordPress plugin LiquidPoll - Funnelkit Integration scored89%from 54 tests.

About plugin

  • Plugin page: liquidpoll-funnel...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 15, 2022
  • Latest release: Dec 26, 2022
  • Number of updates: 4
  • Update frequency: every 10.3 days
  • Top authors: liquidpoll (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /211 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.66ms] Passed 4 tests

An overview of server-side resources used by LiquidPoll - Funnelkit Integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.33 ▼0.18
Dashboard /wp-admin3.34 ▼0.0151.29 ▼13.87
Posts /wp-admin/edit.php3.39 ▲0.0349.49 ▼7.17
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.07 ▼13.40
Media Library /wp-admin/upload.php3.26 ▲0.0352.47 ▲17.40

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for LiquidPoll - Funnelkit Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.68 ▲0.311.96 ▲0.0044.20 ▼0.47
Dashboard /wp-admin2,198 ▲185.59 ▼0.0691.31 ▲0.5841.91 ▼5.77
Posts /wp-admin/edit.php2,103 ▲32.14 ▲0.1542.91 ▼0.3237.64 ▼3.38
Add New Post /wp-admin/post-new.php1,526 ▼223.09 ▼0.06639.07 ▼36.1058.09 ▲8.63
Media Library /wp-admin/upload.php1,400 ▲34.19 ▼0.0297.83 ▼2.9542.18 ▼5.01

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
No tags were detected

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

The main PHP file in "LiquidPoll - Funnelkit Integration" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin151 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14843151

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin