84% smart-user-slug-hider

Code Review | Smart User Slug Hider

WordPress plugin Smart User Slug Hider scored84%from 54 tests.

About plugin

  • Plugin page: smart-user-slug-h...
  • Plugin version: 4.0.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 2, 2014
  • Latest release: Oct 12, 2023
  • Number of updates: 45
  • Update frequency: every 73.3 days
  • Top authors: petersplugins (82.22%)smartware.cc (20%)

Code review

54 tests

User reviews

55 reviews

Install metrics

4,000+ active /40,517 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼0.60ms] Passed 4 tests

An overview of server-side resources used by Smart User Slug Hider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.05 ▼3.75
Dashboard /wp-admin3.40 ▲0.1052.35 ▲0.06
Posts /wp-admin/edit.php3.45 ▲0.1052.87 ▲4.59
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.35 ▼0.24
Media Library /wp-admin/upload.php3.26 ▲0.0339.44 ▲1.54
Smart User Slug Hider /wp-admin/options-general.php?page=smartuserslughidersettings3.2337.06

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
smart_user_slug_hider_data
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Smart User Slug Hider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.37 ▼0.111.55 ▼0.3143.80 ▼6.89
Dashboard /wp-admin2,202 ▲255.63 ▼0.0286.41 ▼14.1241.46 ▼2.44
Posts /wp-admin/edit.php2,107 ▲71.94 ▼0.0340.36 ▲3.4734.58 ▼1.46
Add New Post /wp-admin/post-new.php1,529 ▲323.15 ▼0.02631.28 ▼80.0953.37 ▼9.02
Media Library /wp-admin/upload.php1,407 ▲74.16 ▼0.01105.45 ▼3.8644.69 ▼9.82
Smart User Slug Hider /wp-admin/options-general.php?page=smartuserslughidersettings8172.1928.6630.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • smart_user_slug_hider_data
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'PPF08_SubClass' not found in wp-content/plugins/smart-user-slug-hider/inc/ppf/ppf-settings.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/smart-user-slug-hider/shortcodes.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'PPF08_SubClass' not found in wp-content/plugins/smart-user-slug-hider/inc/ppf/ppf-admin.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PPF08_Class' not found in wp-content/plugins/smart-user-slug-hider/inc/ppf/ppf-plugin.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PPF08_Plugin' not found in wp-content/plugins/smart-user-slug-hider/inc/ppf/ppf-plugin-addon.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PPF08_Class' not found in wp-content/plugins/smart-user-slug-hider/inc/ppf/ppf-subclass.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% 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 require attention:
  • Tags: There are too many tags (17 tag instead of maximum 10)
You can take inspiration from this readme.txt

smart-user-slug-hider/smart-user-slug-hider.php Passed 13 tests

Analyzing the main PHP file in "Smart User Slug Hider" version 4.0.4
55 characters long description:
Hide usernames in author pages URLs to enhance security

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
Everything looks great! No dangerous files found in this plugin1,138 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP177841,084812
CSS1510231
JavaScript2352290
SVG5005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.67
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity1.84
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes666.67%
▷ Concrete classes333.33%
▷ Final classes00.00%
Methods93
▷ Static methods11.08%
▷ Public methods7984.95%
▷ Protected methods55.38%
▷ Private methods99.68%
Functions11
▷ Named functions327.27%
▷ Anonymous functions872.73%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin