84% wp-slugify

Code Review | WP Slugify

WordPress plugin WP Slugify scored84%from 54 tests.

About plugin

  • Plugin page: wp-slugify
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Oct 27, 2015
  • Latest release: Nov 2, 2015
  • Number of updates: 12
  • Update frequency: every 0.5 days
  • Top authors: Replace (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /675 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼7.10ms] Passed 4 tests

This is a short check of server-side resources used by WP Slugify
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0744.12 ▼1.52
Dashboard /wp-admin3.42 ▲0.1151.74 ▼7.08
Posts /wp-admin/edit.php3.47 ▲0.1147.95 ▼6.17
Add New Post /wp-admin/post-new.php6.00 ▲0.1191.11 ▼13.61
Media Library /wp-admin/upload.php3.34 ▲0.1144.38 ▲7.68
WP Slugify /wp-admin/options-general.php?page=wp-slugify3.3136.54

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

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

Browser metrics Passed 4 tests

WP Slugify: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.34 ▼0.301.73 ▼0.3341.64 ▼4.37
Dashboard /wp-admin2,199 ▲225.62 ▲0.0284.88 ▼11.5942.94 ▼4.21
Posts /wp-admin/edit.php2,104 ▲72.01 ▲0.0339.71 ▲1.5735.96 ▲0.56
Add New Post /wp-admin/post-new.php1,536 ▲1023.16 ▼0.49670.93 ▼11.0556.81 ▲7.92
Media Library /wp-admin/upload.php1,407 ▲74.17 ▲0.0296.50 ▼6.2247.51 ▼2.58
WP Slugify /wp-admin/options-general.php?page=wp-slugify8962.0021.8027.82

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-slugify/wp-slugify.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

wp-slugify/wp-slugify.php Passed 13 tests

"WP Slugify" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
50 characters long description:
Change default wordpress automatic generation slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin808 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32436808

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.00
▷ Minimum class complexity3.00
▷ Maximum class complexity9.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.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

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