84% wpum-newsletter

Code Review | WP User Manager Newsletter

WordPress plugin WP User Manager Newsletter scored84%from 54 tests.

About plugin

  • Plugin page: wpum-newsletter
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Jun 2, 2020
  • Latest release: Jul 31, 2021
  • Number of updates: 4
  • Update frequency: every 106.0 days
  • Top authors: wpusermanager (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /777 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.20ms] Passed 4 tests

This is a short check of server-side resources used by WP User Manager Newsletter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.22 ▼2.91
Dashboard /wp-admin3.31 ▲0.0144.61 ▼1.51
Posts /wp-admin/edit.php3.36 ▲0.0147.11 ▼2.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.03 ▼14.16
Media Library /wp-admin/upload.php3.23 ▲0.0133.68 ▲0.89

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP User Manager Newsletter
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼1.081.67 ▼0.0343.26 ▼3.77
Dashboard /wp-admin2,206 ▲185.86 ▲0.9898.92 ▼2.1539.15 ▼2.88
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0437.67 ▼1.7336.43 ▲1.55
Add New Post /wp-admin/post-new.php1,514 ▼1917.44 ▼5.80662.34 ▼21.6649.50 ▼18.45
Media Library /wp-admin/upload.php1,388 ▲64.20 ▼0.0694.13 ▼7.1941.54 ▼1.55

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpum-newsletter/wpum-newsletter.php:35

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: email, wpum, email marketing, newsletter, wp user manager

wpum-newsletter/wpum-newsletter.php Passed 13 tests

The main PHP script in "WP User Manager Newsletter" version 1.0 is automatically included on every request by WordPress
48 characters long description:
WP User Manager addon for the Newsletter plugin.

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
Good job! No executable or dangerous file extensions detected19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141619

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin