83% auto-change-post-title

Code Review | OVN Auto change post title

WordPress plugin OVN Auto change post title scored 83% from 54 tests.

About plugin

  • Plugin page: auto-change-post-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 6.3.1
  • First release: Jun 18, 2021
  • Latest release: Jan 7, 2022
  • Number of updates: 4
  • Update frequency: every 51.0 days
  • Top authors: outsourcingvn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 474 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by OVN Auto change post title
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.50 ▼4.01
Dashboard /wp-admin3.40 ▲0.10116.11 ▲66.78
Posts /wp-admin/edit.php3.45 ▲0.09452.71 ▲405.87
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.31 ▼12.24
Media Library /wp-admin/upload.php3.24 ▲0.0235.49 ▲3.82

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
acpt_error_notice
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for OVN Auto change post title
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲8013.22 ▼1.162.12 ▲0.1442.25 ▲0.53
Dashboard /wp-admin2,218 ▲274.84 ▼0.25107.87 ▼1.7443.90 ▲0.67
Posts /wp-admin/edit.php2,100 ▲112.06 ▲0.0341.03 ▼0.3837.06 ▼0.82
Add New Post /wp-admin/post-new.php1,544 ▲3023.08 ▲5.48591.07 ▼35.7651.08 ▲0.43
Media Library /wp-admin/upload.php1,403 ▲124.23 ▲0.03100.47 ▲0.3844.29 ▼0.79

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

Smoke tests 75% from 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 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 take a closer look at 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/auto-change-post-title/auto-change-post-title.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: change post title, post title, change, post, ovn...

auto-change-post-title/auto-change-post-title.php 77% from 13 tests

The main PHP script in "OVN Auto change post title" version 1.0.1 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")
  • Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "7.2")
  • Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "5.2")

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 detected291 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14014291

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.48
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%
Functions17
▷ Named functions17100.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
PNG images were not found in this plugin