68% rename-post-labels-by-wowdevshop

Code Review | Rename Post Labels by WOWDevShop

WordPress plugin Rename Post Labels by WOWDevShop scored68%from 54 tests.

About plugin

  • Plugin page: rename-post-label...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Jan 7, 2016
  • Latest release: Apr 18, 2018
  • Number of updates: 15
  • Update frequency: every 55.5 days
  • Top authors: XicoOfficial (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /938 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.23MB] [CPU: ▼45.78ms] Passed 4 tests

A check of server-side resources used by Rename Post Labels by WOWDevShop
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.75 ▼0.7112.44 ▼32.09
Dashboard /wp-admin2.79 ▼0.5215.61 ▼34.69
Posts /wp-admin/edit.php2.79 ▼0.5717.00 ▼36.10
Add New Post /wp-admin/post-new.php2.79 ▼3.1015.49 ▼80.25
Media Library /wp-admin/upload.php2.79 ▼0.4416.48 ▼22.69
Rename Post Labels /wp-admin/options-general.php?page=rename-post-labels2.7917.24

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rename Post Labels by WOWDevShop
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.24 ▼1.141.67 ▼0.0841.19 ▲0.04
Dashboard /wp-admin2,228 ▲344.86 ▼0.01102.25 ▼7.7744.02 ▲1.99
Posts /wp-admin/edit.php2,104 ▲12.05 ▲0.0640.40 ▲3.0635.12 ▼4.21
Add New Post /wp-admin/post-new.php1,548 ▼023.32 ▲0.18682.31 ▼30.5754.74 ▼5.97
Media Library /wp-admin/upload.php1,404 ▲44.23 ▼0.03101.02 ▼18.7543.73 ▼4.58
Rename Post Labels /wp-admin/options-general.php?page=rename-post-labels1,0292.0226.6426.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/rename-post-labels-by-wowdevshop/wowdevshop-rename-post-labels.php+116
    Trying to access array offset on value of type bool
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=rename-post-labels
    • > Notice in wp-content/plugins/rename-post-labels-by-wowdevshop/wowdevshop-rename-post-labels.php+116
    Trying to access array offset on value of type bool

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rename-post-labels-by-wowdevshop/wowdevshop-rename-post-labels.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/rename-post-labels-by-wowdevshop/includes/menu-settings.php:15

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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: rename post label, post labels, post, rename label

rename-post-labels-by-wowdevshop/wowdevshop-rename-post-labels.php 92% from 13 tests

The principal PHP file in "Rename Post Labels by WOWDevShop" v. 1.1.3 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rename-post-labels-by-wowdevshop.php" instead of "wowdevshop-rename-post-labels.php")

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
No dangerous file extensions were detected159 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22834159

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions5
▷ Named functions5100.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
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.PNG32.81KB12.79KB▼ 61.02%
assets/screenshot-1.PNG41.70KB17.13KB▼ 58.92%