89% edit-author-slug

Code Review | Edit Author Slug

WordPress plugin Edit Author Slug scored89%from 54 tests.

About plugin

  • Plugin page: edit-author-slug
  • Plugin version: 1.9.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4
  • WordPress version: 6.3.1
  • First release: Nov 27, 2009
  • Latest release: Oct 17, 2023
  • Number of updates: 253
  • Update frequency: every 20.1 days
  • Top authors: cnorris23 (64.82%)thebrandonallen (35.57%)

Code review

54 tests

User reviews

80 reviews

Install metrics

100,000+ active /1,160,336 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.20MB] [CPU: ▼2.52ms] Passed 4 tests

An overview of server-side resources used by Edit Author Slug
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1446.83 ▲5.73
Dashboard /wp-admin3.54 ▲0.1947.86 ▼10.28
Posts /wp-admin/edit.php3.65 ▲0.2945.42 ▼1.40
Add New Post /wp-admin/post-new.php6.12 ▲0.2392.41 ▼1.97
Media Library /wp-admin/upload.php3.46 ▲0.2337.07 ▲3.57
Edit Author Slug /wp-admin/options-general.php?page=edit-author-slug3.4331.51

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 13 new options
New WordPress options
can_compress_scripts
widget_recent-comments
_ba_eas_db_version
_ba_eas_role_slugs
_ba_eas_author_base
db_upgraded
widget_theysaidso_widget
_ba_eas_do_role_based
_ba_eas_default_user_nicename
_ba_eas_remove_front
...

Browser metrics Passed 4 tests

Checking browser requirements for Edit Author Slug
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲6814.37 ▼0.272.08 ▲0.2344.58 ▼3.80
Dashboard /wp-admin2,199 ▲225.48 ▼0.1485.07 ▼3.4236.29 ▼4.00
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0935.85 ▼1.0637.25 ▲4.38
Add New Post /wp-admin/post-new.php1,530 ▲423.15 ▲0.06646.62 ▼115.4050.96 ▲1.67
Media Library /wp-admin/upload.php1,404 ▲44.22 ▲0.0496.98 ▼2.0139.60 ▼6.36
Edit Author Slug /wp-admin/options-general.php?page=edit-author-slug1,0962.0425.0349.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

edit-author-slug/edit-author-slug.php 92% from 13 tests

The principal PHP file in "Edit Author Slug" v. 1.9.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 233 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,518 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP84141,1861,110
Markdown21080338
JavaScript291470

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods975.00%
▷ Protected methods00.00%
▷ Private methods325.00%
Functions57
▷ Named functions57100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin