89% change-post-label

Code Review | Change Post Label

WordPress plugin Change Post Label scored89%from 54 tests.

About plugin

  • Plugin page: change-post-label
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Oct 23, 2014
  • Latest release: May 18, 2015
  • Number of updates: 7
  • Update frequency: every 29.7 days
  • Top authors: fccoelho7 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,320 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
This plugin's installer ran successfully

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

A check of server-side resources used by Change Post Label
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.26 ▼3.00
Dashboard /wp-admin3.33 ▼0.0252.64 ▼16.03
Posts /wp-admin/edit.php3.38 ▲0.0248.60 ▼4.48
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.67 ▼6.17
Media Library /wp-admin/upload.php3.25 ▲0.0238.87 ▼1.55
Change Post Label /wp-admin/options-general.php?page=change-post-label3.2232.97

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Change Post Label
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲3313.74 ▼0.641.78 ▼0.0551.37 ▲9.81
Dashboard /wp-admin2,222 ▲195.83 ▼0.07102.82 ▲1.5041.42 ▼5.29
Posts /wp-admin/edit.php2,107 ▲72.05 ▲0.0134.80 ▼7.9533.27 ▼3.75
Add New Post /wp-admin/post-new.php1,529 ▼217.52 ▼5.78600.82 ▼88.2748.71 ▼8.42
Media Library /wp-admin/upload.php1,401 ▲14.29 ▲0.0598.34 ▼16.1343.06 ▼5.85
Change Post Label /wp-admin/options-general.php?page=change-post-label1,0432.0322.8228.78

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Image 1), #2 (Image 2), #3 (Image 3)
  • Donate link: Invalid URI ("")
The official readme.txt is a good inspiration

change-post-label/change-post-label.php 92% from 13 tests

The primary PHP file in "Change Post Label" version 1.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 163 characters long)

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
Success! There were no dangerous files found in this plugin190 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1339190

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in 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
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

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png9.22KB3.66KB▼ 60.33%
tags/1.5/screenshot-3.png36.12KB10.91KB▼ 69.80%
screenshot-2.png46.27KB14.41KB▼ 68.87%
tags/1.5/screenshot-1.png9.22KB3.66KB▼ 60.33%
tags/1.5/screenshot-2.png46.27KB14.41KB▼ 68.87%