89% simple-regenerate-slug

Code Review | Simple Regenerate Slug

WordPress plugin Simple Regenerate Slug scored 89% from 54 tests.

About plugin

  • Plugin page: simple-regenerate...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 12, 2020
  • Latest release: Aug 24, 2023
  • Number of updates: 9
  • Update frequency: every 140.0 days
  • Top authors: vividsunny (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active / 2,227 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by Simple Regenerate Slug
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.65 ▼3.84
Dashboard /wp-admin3.31 ▲0.0145.11 ▼4.67
Posts /wp-admin/edit.php3.36 ▲0.0050.38 ▲3.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.19 ▼17.17
Media Library /wp-admin/upload.php3.23 ▲0.0033.77 ▲0.19

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Simple Regenerate Slug
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.201.62 ▲0.0741.52 ▲1.65
Dashboard /wp-admin2,209 ▲175.02 ▲0.08107.77 ▲3.2938.26 ▼5.00
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0539.28 ▲3.8034.69 ▲2.30
Add New Post /wp-admin/post-new.php1,519 ▼923.23 ▲4.90644.21 ▲47.9271.59 ▲18.72
Media Library /wp-admin/upload.php1,388 ▲34.15 ▼0.1592.62 ▼6.4744.22 ▼3.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Contributors: Plugin contributors not specified
  • Requires php: Invalid plugin version format
The official readme.txt is a good inspiration

simple-regenerate-slug/simple-regenerate-slug.php Passed 13 tests

"Simple Regenerate Slug" version 1.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
67 characters long description:
Regenerate Slugs From Title of Posts, Page Title, Custom Post Title

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP193922

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin