84% easy-user-data

Code Review | Easy User Data

WordPress plugin Easy User Data scored84%from 54 tests.

About plugin

  • Plugin page: easy-user-data
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 2, 2019
  • Latest release: Aug 3, 2019
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: millsandyoung (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /527 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.00MB] [CPU: ▼12.31ms] Passed 4 tests

Server-side resources used by Easy User Data
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.10 ▲0.12
Dashboard /wp-admin3.32 ▼0.0341.83 ▼15.01
Posts /wp-admin/edit.php3.37 ▲0.0141.71 ▼6.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0177.14 ▼21.77
Media Library /wp-admin/upload.php3.24 ▲0.0131.17 ▼6.10

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Easy User Data
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.37 ▼0.241.94 ▲0.3137.31 ▼0.72
Dashboard /wp-admin2,198 ▲185.59 ▼0.1083.80 ▼1.6138.87 ▼2.39
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0642.63 ▲1.4540.33 ▲1.00
Add New Post /wp-admin/post-new.php1,526 ▼023.07 ▲0.39682.09 ▼4.3257.11 ▲1.55
Media Library /wp-admin/upload.php1,394 ▼64.24 ▼0.01104.50 ▲10.6945.79 ▲2.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-user-data/easy_user_data.php:88

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: data, user

easy-user-data/easy_user_data.php 85% from 13 tests

The principal PHP file in "Easy User Data" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-user-data.php" instead of "easy_user_data.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 256 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected108 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP112877
Markdown114031

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions9
▷ Named functions9100.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
PNG images were not found in this plugin