10% woocommerce-userfollowup

Code Review | WooCommerce UserFollowUp

WordPress plugin WooCommerce UserFollowUp scored10%from 54 tests.

About plugin

  • Plugin page: woocommerce-userf...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1
  • WordPress version: 6.3.1
  • First release: Mar 2, 2015
  • Latest release: Mar 2, 2015
  • Number of updates: 2
  • Update frequency: every 114.5 days
  • Top authors: nunomorgadinho (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,156 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/woocommerce-userfollowup/woocommerce-userfollowup.php+20
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_userfollowup has a deprecated constructor

Server metrics [RAM: ▼0.89MB] [CPU: ▼49.77ms] Passed 4 tests

Server-side resources used by WooCommerce UserFollowUp
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.11 ▼0.357.59 ▼32.28
Dashboard /wp-admin3.13 ▼0.228.26 ▼51.16
Posts /wp-admin/edit.php3.13 ▼0.2310.22 ▼33.08
Add New Post /wp-admin/post-new.php3.13 ▼2.769.41 ▼82.57
Media Library /wp-admin/upload.php3.13 ▼0.108.20 ▼26.57
WP UserFollowUp /wp-admin/options-general.php?page=wp_userfollowup3.137.71

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

Analyzing filesystem and database footprints of this plugin
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
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce UserFollowUp
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.45 ▲0.071.83 ▲0.0244.89 ▲8.18
Dashboard /wp-admin2,204 ▲165.84 ▲0.99101.96 ▼13.4440.25 ▼6.10
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0035.98 ▼4.8934.85 ▼3.02
Add New Post /wp-admin/post-new.php1,517 ▼2517.57 ▼0.58641.30 ▲4.7051.22 ▲0.31
Media Library /wp-admin/upload.php1,392 ▲104.18 ▼0.0597.62 ▼1.1642.15 ▼3.03
WP UserFollowUp /wp-admin/options-general.php?page=wp_userfollowup9072.0624.3226.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/woocommerce-userfollowup/woocommerce-userfollowup.php+20
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_userfollowup has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp_userfollowup
    • > Deprecated in wp-content/plugins/woocommerce-userfollowup/woocommerce-userfollowup.php+20
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_userfollowup has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=wp_userfollowup
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wp_userfollowup
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp_userfollowup
    • > Notice in wp-content/plugins/woocommerce-userfollowup/woocommerce-userfollowup.php+699
    Trying to access array offset on value of type bool

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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-userfollowup/woocommerce-userfollowup.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === woocommerce-userfollowup === )
The official readme.txt might help

woocommerce-userfollowup/woocommerce-userfollowup.php 92% from 13 tests

The main PHP script in "WooCommerce UserFollowUp" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 233 characters long)

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
No dangerous file extensions were detected2,090 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14282402,090

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity392.00
▷ Minimum class complexity392.00
▷ Maximum class complexity392.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods200
▷ Static methods00.00%
▷ Public methods200100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin