89% edd-auto-register

Code Review | EDD Auto Register

WordPress plugin EDD Auto Register scored89%from 54 tests.

About plugin

  • Plugin page: edd-auto-register
  • Plugin version: 1.4.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Oct 24, 2013
  • Latest release: Aug 29, 2023
  • Number of updates: 58
  • Update frequency: every 62.0 days
  • Top authors: mordauk (41.38%)sumobi (34.48%)cklosows (24.14%)NoseGraze (5.17%)

Code review

54 tests

User reviews

12 reviews

Install metrics

5,000+ active /63,169 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼3.53ms] Passed 4 tests

An overview of server-side resources used by EDD Auto Register
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1740.97 ▲3.76
Dashboard /wp-admin3.54 ▲0.2446.29 ▼3.01
Posts /wp-admin/edit.php3.59 ▲0.2348.05 ▼0.83
Add New Post /wp-admin/post-new.php6.06 ▲0.1791.22 ▼8.05
Media Library /wp-admin/upload.php3.40 ▲0.1735.17 ▼2.21

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for EDD Auto Register
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.71 ▼0.671.64 ▼0.0138.20 ▼3.77
Dashboard /wp-admin2,212 ▲215.86 ▼0.02104.21 ▼1.9241.94 ▼1.98
Posts /wp-admin/edit.php2,092 ▼02.01 ▼0.0440.48 ▼2.0635.05 ▼3.57
Add New Post /wp-admin/post-new.php1,531 ▲318.90 ▲0.45606.52 ▼21.0080.29 ▲29.84
Media Library /wp-admin/upload.php1,388 ▲34.20 ▲0.0295.94 ▼7.4343.10 ▼0.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed: The official readme.txt is a good inspiration

edd-auto-register/edd-auto-register.php 85% from 13 tests

The main file in "EDD Auto Register" v. 1.4.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,652 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP133309471,243
PO File4108122301
Markdown113056
JSON20052

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity25.00
▷ Minimum class complexity1.00
▷ Maximum class complexity63.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods93
▷ Static methods2122.58%
▷ Public methods7176.34%
▷ Protected methods00.00%
▷ Private methods2223.66%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin