84% auto-subscribe-users

Code Review | Auto Subscribe Users

WordPress plugin Auto Subscribe Users scored84%from 54 tests.

About plugin

  • Plugin page: auto-subscribe-users
  • Plugin version: 0.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.3
  • WordPress version: 6.3.1
  • First release: Mar 18, 2016
  • Latest release: Jul 5, 2016
  • Number of updates: 26
  • Update frequency: every 4.3 days
  • Top authors: harshit_ps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,309 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Auto Subscribe Users
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.74 ▼7.27
Dashboard /wp-admin3.33 ▲0.0353.07 ▼10.43
Posts /wp-admin/edit.php3.38 ▲0.0258.88 ▲0.32
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.52 ▼8.13
Media Library /wp-admin/upload.php3.25 ▲0.0239.84 ▼0.29

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Auto Subscribe Users
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.091.69 ▼0.0341.04 ▼2.55
Dashboard /wp-admin2,195 ▲155.63 ▼0.0489.35 ▼7.4842.79 ▼2.11
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0640.16 ▼0.5535.73 ▲1.36
Add New Post /wp-admin/post-new.php1,526 ▼223.16 ▼0.03684.84 ▼4.4454.36 ▼3.43
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.1199.59 ▼11.3044.48 ▲2.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/auto-subscribe-users/auto-subscribe-users.php:35

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt might help

auto-subscribe-users/auto-subscribe-users.php Passed 13 tests

The principal PHP file in "Auto Subscribe Users" v. 0.0.6 is loaded by WordPress automatically on each request
91 characters long description:
Automatically subscribes users so that they can be notified of any new content on the site.

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 detected83 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1328883

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.68
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity6.60
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin