84% easy-user-tags

Code Review | Easy User Tags

WordPress plugin Easy User Tags scored84%from 54 tests.

About plugin

  • Plugin page: easy-user-tags
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 12, 2015
  • Latest release: Nov 15, 2016
  • Number of updates: 12
  • Update frequency: every 30.8 days
  • Top authors: danielbitzer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,153 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
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.74ms] Passed 4 tests

An overview of server-side resources used by Easy User Tags
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0934.62 ▼2.81
Dashboard /wp-admin3.39 ▲0.0944.11 ▼7.92
Posts /wp-admin/edit.php3.51 ▲0.1548.25 ▲1.08
Add New Post /wp-admin/post-new.php5.97 ▲0.0995.84 ▼5.31
Media Library /wp-admin/upload.php3.31 ▲0.0934.85 ▲2.39
Tags /wp-admin/edit-tags.php?taxonomy=user_tag3.3132.41

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy User Tags
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.24 ▼1.121.79 ▼0.0140.02 ▼3.86
Dashboard /wp-admin2,210 ▲194.87 ▼0.17107.79 ▼6.5144.47 ▼1.47
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0039.36 ▲1.4734.09 ▲0.47
Add New Post /wp-admin/post-new.php1,536 ▲1723.37 ▲0.07595.01 ▲12.2850.98 ▼5.28
Media Library /wp-admin/upload.php1,389 ▲14.15 ▼0.0796.10 ▼4.3043.15 ▲0.09
Tags /wp-admin/edit-tags.php?taxonomy=user_tag1,2262.1329.6834.10

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

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-user-tags/easy-user-tags.php:27

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: profile, users, user, admin, eccommerce

easy-user-tags/easy-user-tags.php Passed 13 tests

The principal PHP file in "Easy User Tags" v. 1.2 is loaded by WordPress automatically on each request
29 characters long description:
Adds a tag taxonomy to users.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected351 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2124141351

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity26.50
▷ Minimum class complexity13.00
▷ Maximum class complexity40.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected