84% wp-change-custom-post-slug

Code Review | WP Change Custom Posts Slugs

WordPress plugin WP Change Custom Posts Slugs scored84%from 54 tests.

About plugin

  • Plugin page: wp-change-custom-...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 28, 2016
  • Latest release: Oct 16, 2020
  • Number of updates: 8
  • Update frequency: every 207.9 days
  • Top authors: ThemeHeap (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /7,936 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▲1.98ms] Passed 4 tests

This is a short check of server-side resources used by WP Change Custom Posts Slugs
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.69 ▲1.09
Dashboard /wp-admin3.36 ▲0.0555.09 ▼0.22
Posts /wp-admin/edit.php3.45 ▲0.0958.99 ▲7.27
Add New Post /wp-admin/post-new.php5.93 ▲0.05103.47 ▼0.22
Media Library /wp-admin/upload.php3.28 ▲0.0544.92 ▲10.63
TH Custom Slugs /wp-admin/options-general.php?page=th-wp-change-custom-post-slugs3.2440.28

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Change Custom Posts Slugs
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.24 ▼1.162.03 ▲0.2243.73 ▼6.83
Dashboard /wp-admin2,210 ▲225.86 ▼0.0497.15 ▼15.3938.30 ▼7.68
Posts /wp-admin/edit.php2,093 ▲12.01 ▼0.0440.86 ▲1.8237.32 ▲1.71
Add New Post /wp-admin/post-new.php1,532 ▼118.15 ▼5.34665.76 ▼4.6055.62 ▼3.83
Media Library /wp-admin/upload.php1,386 ▲14.30 ▲0.09122.69 ▲20.1348.02 ▲1.04
TH Custom Slugs /wp-admin/options-general.php?page=th-wp-change-custom-post-slugs7852.3428.6825.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-change-custom-post-slug/wp-change-custom-post-slugs.php:11

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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: The plugin contributors field is not present
The official readme.txt might help

wp-change-custom-post-slug/wp-change-custom-post-slugs.php 92% from 13 tests

"WP Change Custom Posts Slugs" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-change-custom-post-slug.php" instead of "wp-change-custom-post-slugs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin97 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1222697

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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