84% wp-author-slug

Code Review | WP Author Slug

WordPress plugin WP Author Slug scored84%from 54 tests.

About plugin

  • Plugin page: wp-author-slug
  • Plugin version: 4...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 21, 2011
  • Latest release: Nov 11, 2022
  • Number of updates: 19
  • Update frequency: every 225.4 days
  • Top authors: obenland (63.16%)kobenland (31.58%)stanzl (15.79%)

Code review

54 tests

User reviews

20 reviews

Install metrics

3,000+ active /27,472 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 gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.11ms] Passed 4 tests

Analyzing server-side resources used by WP Author Slug
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.12 ▲3.24
Dashboard /wp-admin3.31 ▼0.0345.83 ▼14.87
Posts /wp-admin/edit.php3.37 ▲0.0143.45 ▲0.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.12 ▼12.76
Media Library /wp-admin/upload.php3.24 ▲0.0132.66 ▼9.69

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

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

Browser metrics Passed 4 tests

WP Author Slug: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.41 ▲0.061.95 ▲0.2045.10 ▲4.67
Dashboard /wp-admin2,195 ▲145.51 ▼0.1689.33 ▼11.7239.38 ▼6.34
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0036.79 ▼2.3631.70 ▼1.91
Add New Post /wp-admin/post-new.php1,535 ▲918.22 ▼5.23634.28 ▼18.5466.01 ▲14.68
Media Library /wp-admin/upload.php1,400 ▼04.15 ▼0.0597.10 ▼24.5639.96 ▼7.36

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 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 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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Obenland_Wp_Plugins_V5' not found in wp-content/plugins/wp-author-slug/class-obenland-wp-author-slug.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-author-slug/class-obenland-wp-plugins-v5.php:93

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: security, author, url, author archive, permalink...

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

The main file in "WP Author Slug" v. 4... serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "4...")

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
Everything looks great! No dangerous files found in this plugin228 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP337221194
PO File182034

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.50
▷ Minimum class complexity3.00
▷ Maximum class complexity8.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods872.73%
▷ Protected methods218.18%
▷ Private methods19.09%
Functions2
▷ Named functions2100.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
No PNG files were detected