89% visual-user-description-editor

Code Review | Visual User Description Editor

WordPress plugin Visual User Description Editor scored89%from 54 tests.

About plugin

  • Plugin page: visual-user-descr...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.1.0
  • WordPress version: 6.3.1
  • First release: May 23, 2022
  • Latest release: Nov 25, 2022
  • Number of updates: 8
  • Update frequency: every 24.0 days
  • Top authors: zwwuu (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /1,724 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Visual User Description Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.66 ▼0.85
Dashboard /wp-admin3.32 ▲0.0249.15 ▼3.68
Posts /wp-admin/edit.php3.37 ▲0.0248.18 ▲3.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.64 ▼10.89
Media Library /wp-admin/upload.php3.24 ▲0.0138.04 ▲4.03

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Visual User Description Editor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.071.65 ▼0.3444.70 ▲0.59
Dashboard /wp-admin2,198 ▲185.63 ▲0.1299.02 ▲5.9941.85 ▼2.51
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0136.49 ▼9.9233.17 ▼10.59
Add New Post /wp-admin/post-new.php1,526 ▼022.96 ▼0.09687.19 ▲21.9365.79 ▲6.90
Media Library /wp-admin/upload.php1,397 ▼04.24 ▼0.00109.44 ▼1.5044.81 ▲1.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

visual-user-description-editor/visual-user-description-editor.php 92% from 13 tests

"Visual User Description Editor" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
Good job! No executable or dangerous file extensions detected75 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2154659
JavaScript21016

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin