10% wp-ultimate-list

Code Review | WP Email Subscribe

WordPress plugin WP Email Subscribe scored10%from 54 tests.

About plugin

  • Plugin page: wp-ultimate-list
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.0.3
  • WordPress version: 6.3.1
  • First release: Mar 16, 2017
  • Latest release: Jan 13, 2019
  • Number of updates: 14
  • Update frequency: every 63.9 days
  • Top authors: hozyali (78.57%)99robots (28.57%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /838 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.64ms] Passed 4 tests

Analyzing server-side resources used by WP Email Subscribe
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.96 ▼9.67
Dashboard /wp-admin3.31 ▲0.0046.43 ▼0.35
Posts /wp-admin/edit.php3.36 ▲0.0044.12 ▼5.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.95 ▼7.45
Media Library /wp-admin/upload.php3.23 ▲0.0035.40 ▲1.76

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 203 new files
Database: 2 new tables, 8 new options
New tables
wp_wpulist_emails
wp_wpulist_emails_lists
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
wpulist_list_managers
wpulist_list_managers_details

Browser metrics Passed 4 tests

WP Email Subscribe: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.35 ▼1.291.58 ▼0.3835.27 ▼14.80
Dashboard /wp-admin2,200 ▲185.91 ▲1.06107.68 ▲2.8342.60 ▼1.10
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.1439.53 ▼1.2934.86 ▲0.22
Add New Post /wp-admin/post-new.php1,514 ▼517.52 ▼5.56685.58 ▲76.2855.20 ▼0.38
Media Library /wp-admin/upload.php1,382 ▼64.21 ▼0.0095.50 ▼8.7842.03 ▼2.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_wpulist_emails_lists
    • wp_wpulist_emails
  • The uninstall procedure has failed, leaving 8 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • wpulist_list_managers
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • wpulist_list_managers_details

Smoke tests 50% from 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 0% from 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
Please fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-ultimate-list/integration/aweber/get_access_tokens.php
    • > /wp-content/plugins/wp-ultimate-list/integration/aweber/--get_access_tokens.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined index: accessSecret in wp-content/plugins/wp-ultimate-list/integration/aweber/--get_access_tokens.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberAPIBase' not found in wp-content/plugins/wp-ultimate-list/integration/aweber/aweber_api/aweber_response.php:14
    • > PHP Notice
      Undefined index: site_url in wp-content/plugins/wp-ultimate-list/integration/aweber/--get_access_tokens.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/wp-ultimate-list/integration/aweber/aweber_api/aweber_entry.php:3
    • > PHP Notice
      Undefined index: accessKey in wp-content/plugins/wp-ultimate-list/integration/aweber/--get_access_tokens.php on line 4
    • > PHP Fatal error
      Uncaught Error: Interface 'AWeberOAuthAdapter' not found in wp-content/plugins/wp-ultimate-list/integration/aweber/aweber_api/oauth_application.php:57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-ultimate-list/index.php:137
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/wp-ultimate-list/integration/aweber/aweber_api/aweber_collection.php:2

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 90% 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
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 50 tag instead of maximum 10
You can take inspiration from this readme.txt

wp-ultimate-list/index.php 85% from 13 tests

"WP Email Subscribe" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-ultimate-list.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin21,094 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
SVG30015,225
PHP447541,2143,920
CSS18225771,292
JavaScript85336657

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity6.13
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods137
▷ Static methods21.46%
▷ Public methods11483.21%
▷ Protected methods2115.33%
▷ Private methods21.46%
Functions54
▷ Named functions54100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.77MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
themes/theme63/images/hero.png46.85KB22.91KB▼ 51.09%
themes/theme79/images/hero.png89.60KB33.95KB▼ 62.11%
themes/theme3/images/bg.png478.47KB149.98KB▼ 68.65%
integration/logos/4.png13.83KB6.34KB▼ 54.15%
integration/logos/1.png3.81KB1.86KB▼ 51.17%