72% logicrays-wp-mailchimp-signup-form-with-popup

Code Review | Logicrays WP Mailchimp Signup form with popup

WordPress plugin Logicrays WP Mailchimp Signup form with popup scored72%from 54 tests.

About plugin

  • Plugin page: logicrays-wp-mail...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.6
  • WordPress version: 6.3.1
  • First release: Apr 5, 2018
  • Latest release: Feb 2, 2021
  • Number of updates: 8
  • Update frequency: every 129.3 days
  • Top authors: logicrays (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /742 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.16ms] Passed 4 tests

Server-side resources used by Logicrays WP Mailchimp Signup form with popup
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.04 ▲8.43
Dashboard /wp-admin3.35 ▲0.0546.89 ▲1.12
Posts /wp-admin/edit.php3.41 ▲0.0543.44 ▼4.11
Add New Post /wp-admin/post-new.php5.93 ▲0.0582.55 ▼9.78
Media Library /wp-admin/upload.php3.28 ▲0.0532.16 ▼3.88
Free plugins /wp-admin/admin.php?page=check_our_free_plugins_mailchimp3.2229.93

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Logicrays WP Mailchimp Signup form with popup
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7314.72 ▲0.162.32 ▲0.5047.05 ▲3.18
Dashboard /wp-admin2,208 ▲285.53 ▼0.1381.42 ▼6.9438.69 ▼7.80
Posts /wp-admin/edit.php2,116 ▲131.97 ▼0.0133.52 ▼9.2535.10 ▼4.11
Add New Post /wp-admin/post-new.php1,548 ▲2022.08 ▼1.03688.25 ▲7.2449.65 ▼12.77
Media Library /wp-admin/upload.php1,419 ▲224.14 ▼0.0394.72 ▼6.5143.78 ▼0.32
Free plugins /wp-admin/admin.php?page=check_our_free_plugins_mailchimp7712.0225.2922.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=check_our_free_plugins_mailchimp
    • > Warning in wp-content/plugins/logicrays-wp-mailchimp-signup-form-with-popup/lrm-wp-mailchimp.php+97
    include_once(lr-free-plugins.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=check_our_free_plugins_mailchimp
    • > Warning in wp-content/plugins/logicrays-wp-mailchimp-signup-form-with-popup/lrm-wp-mailchimp.php+97
    include_once(): Failed opening 'lr-free-plugins.php' for inclusion (include_path='.:/usr/share/php')

SRP 0% 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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/logicrays-wp-mailchimp-signup-form-with-popup/lrm-free-plugins.php
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Use of undefined constant lri_instagramfeedpath - assumed 'lri_instagramfeedpath' (this will throw an Error in a future version of PHP) in wp-content/plugins/logicrays-wp-mailchimp-signup-form-with-popup/lrm-free-plugins.php on line 31
    • > PHP Warning
      Use of undefined constant lri_instagramfeedpath - assumed 'lri_instagramfeedpath' (this will throw an Error in a future version of PHP) in wp-content/plugins/logicrays-wp-mailchimp-signup-form-with-popup/lrm-free-plugins.php on line 49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/logicrays-wp-mailchimp-signup-form-with-popup/lrm-wp-mailchimp.php:10
    • > PHP Warning
      Use of undefined constant lri_instagramfeedpath - assumed 'lri_instagramfeedpath' (this will throw an Error in a future version of PHP) in wp-content/plugins/logicrays-wp-mailchimp-signup-form-with-popup/lrm-free-plugins.php on line 25
    • > PHP Warning
      Use of undefined constant lri_instagramfeedpath - assumed 'lri_instagramfeedpath' (this will throw an Error in a future version of PHP) in wp-content/plugins/logicrays-wp-mailchimp-signup-form-with-popup/lrm-free-plugins.php on line 34
    • > PHP Warning
      Use of undefined constant lri_instagramfeedpath - assumed 'lri_instagramfeedpath' (this will throw an Error in a future version of PHP) in wp-content/plugins/logicrays-wp-mailchimp-signup-form-with-popup/lrm-free-plugins.php on line 28
    • > PHP Warning
      Use of undefined constant lri_instagramfeedpath - assumed 'lri_instagramfeedpath' (this will throw an Error in a future version of PHP) in wp-content/plugins/logicrays-wp-mailchimp-signup-form-with-popup/lrm-free-plugins.php on line 40
    • > PHP Warning
      Use of undefined constant lri_instagramfeedpath - assumed 'lri_instagramfeedpath' (this will throw an Error in a future version of PHP) in wp-content/plugins/logicrays-wp-mailchimp-signup-form-with-popup/lrm-free-plugins.php on line 46
    • > PHP Warning
      Use of undefined constant lri_instagramfeedpath - assumed 'lri_instagramfeedpath' (this will throw an Error in a future version of PHP) in wp-content/plugins/logicrays-wp-mailchimp-signup-form-with-popup/lrm-free-plugins.php on line 37
    • > PHP Warning
      Use of undefined constant lri_instagramfeedpath - assumed 'lri_instagramfeedpath' (this will throw an Error in a future version of PHP) in wp-content/plugins/logicrays-wp-mailchimp-signup-form-with-popup/lrm-free-plugins.php on line 43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #3 (screenshot-3.png) image required
  • Stable tag: Empty value
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

logicrays-wp-mailchimp-signup-form-with-popup/lrm-wp-mailchimp.php 92% from 13 tests

"Logicrays WP Mailchimp Signup form with popup" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("logicrays-wp-mailchimp-signup-form-with-popup.php" instead of "lrm-wp-mailchimp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin474 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP377273
CSS140154
JavaScript14047

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/images/close.png0.50KB0.23KB▼ 53.14%