83% change-category-name

Code Review | OutsourcingVN Change category name

WordPress plugin OutsourcingVN Change category name scored83%from 54 tests.

About plugin

  • Plugin page: change-category-name
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 6.3.1
  • First release: Jun 29, 2021
  • Latest release: Jul 3, 2021
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: outsourcingvn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /321 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.20ms] Passed 4 tests

An overview of server-side resources used by OutsourcingVN Change category name
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.40 ▲3.95
Dashboard /wp-admin3.31 ▲0.0151.86 ▲4.29
Posts /wp-admin/edit.php3.37 ▲0.0144.88 ▼2.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.27 ▼1.28
Media Library /wp-admin/upload.php3.24 ▲0.0139.29 ▼0.86

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for OutsourcingVN Change category name
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲9113.25 ▼1.122.08 ▲0.3842.93 ▲3.34
Dashboard /wp-admin2,233 ▲265.81 ▲0.84110.26 ▲0.7441.19 ▼7.17
Posts /wp-admin/edit.php2,112 ▲121.99 ▼0.0234.83 ▼0.8332.05 ▼4.91
Add New Post /wp-admin/post-new.php1,559 ▲3323.44 ▲6.02677.49 ▼22.5153.87 ▲5.41
Media Library /wp-admin/upload.php1,412 ▲124.34 ▲0.15102.91 ▲4.0348.87 ▲2.98

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/change-category-name/auto-change-category-name.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration 83% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: outsourcingvn, name, change, outsourcing, category...

change-category-name/auto-change-category-name.php 62% from 13 tests

The main PHP script in "OutsourcingVN Change category name" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "5.2")
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "7.2")
  • Main file name: Name the main plugin file the same as the plugin slug ("change-category-name.php" instead of "auto-change-category-name.php")

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
Good job! No executable or dangerous file extensions detected113 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin