84% change-core-slugs

Code Review | Change Core Slugs

WordPress plugin Change Core Slugs scored84%from 54 tests.

About plugin

  • Plugin page: change-core-slugs
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.1
  • WordPress version: 6.3.1
  • First release: Mar 30, 2019
  • Latest release: Mar 30, 2019
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: dimadin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,119 total downloads


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
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼1.85ms] Passed 4 tests

Analyzing server-side resources used by Change Core Slugs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.03 ▼0.69
Dashboard /wp-admin3.40 ▲0.1051.12 ▼7.75
Posts /wp-admin/edit.php3.52 ▲0.1651.64 ▲4.04
Add New Post /wp-admin/post-new.php5.98 ▲0.1086.49 ▼3.01
Media Library /wp-admin/upload.php3.32 ▲0.1036.98 ▲4.50
Change Core Slugs /wp-admin/options-general.php?page=change-core-slugs3.2933.59

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Change Core Slugs
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.48 ▲0.081.96 ▲0.2240.55 ▼0.97
Dashboard /wp-admin2,207 ▲195.83 ▼0.07100.23 ▼5.2138.27 ▼3.95
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0234.97 ▼6.0936.46 ▼3.19
Add New Post /wp-admin/post-new.php1,545 ▲318.07 ▼0.42641.01 ▲12.4759.75 ▲5.68
Media Library /wp-admin/upload.php1,395 ▲74.18 ▼0.0398.50 ▼7.3042.28 ▲1.13
Change Core Slugs /wp-admin/options-general.php?page=change-core-slugs9282.0622.8427.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Trait 'dimadin\\WP\\Plugin\\ChangeCoreSlugs\\SingletonTrait' not found in wp-content/plugins/change-core-slugs/inc/Admin/Page/Settings.php on line 19
    • > PHP Fatal error
      Trait 'dimadin\\WP\\Plugin\\ChangeCoreSlugs\\SingletonTrait' not found in wp-content/plugins/change-core-slugs/inc/Main.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/change-core-slugs/change-core-slugs.php:48

User-side errors Passed 1 test

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: permalink, url, slug

change-core-slugs/change-core-slugs.php 92% from 13 tests

This is the main PHP file of "Change Core Slugs" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin333 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity4.67
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
▷ Static methods1052.63%
▷ Public methods1894.74%
▷ Protected methods15.26%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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
There are no PNG files in this plugin