84% custom-archive-titles

Code Review | Custom Archive Titles

WordPress plugin Custom Archive Titles scored84%from 54 tests.

About plugin

  • Plugin page: custom-archive-ti...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 6.3.1
  • First release: Dec 5, 2016
  • Latest release: Jun 6, 2021
  • Number of updates: 12
  • Update frequency: every 136.5 days
  • Top authors: ThemeZee (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

4,000+ active /51,139 total downloads

Benchmarks

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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.49ms] Passed 4 tests

This is a short check of server-side resources used by Custom Archive Titles
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0741.67 ▼5.03
Dashboard /wp-admin3.43 ▲0.0552.35 ▼11.42
Posts /wp-admin/edit.php3.55 ▲0.1549.31 ▼1.09
Add New Post /wp-admin/post-new.php6.01 ▲0.0984.13 ▼8.42
Media Library /wp-admin/upload.php3.36 ▲0.0940.90 ▲8.40
Custom Archive Titles /wp-admin/options-general.php?page=themezee-custom-archive-titles3.3229.83

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
tzcat_settings
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Archive Titles
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.24 ▼0.321.69 ▼0.2744.04 ▲0.71
Dashboard /wp-admin2,199 ▲225.54 ▼0.0583.02 ▼4.8938.03 ▼4.14
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0533.78 ▼5.0433.60 ▼5.08
Add New Post /wp-admin/post-new.php1,529 ▲123.59 ▲0.61680.43 ▼13.3360.13 ▲9.55
Media Library /wp-admin/upload.php1,407 ▲44.12 ▼0.06106.04 ▲9.8447.59 ▲6.12
Custom Archive Titles /wp-admin/options-general.php?page=themezee-custom-archive-titles8672.0022.8629.45

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • tzcat_settings

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=themezee-custom-archive-titles
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: tag, category, author, archive, heading...

custom-archive-titles/custom-archive-titles.php Passed 13 tests

The main PHP file in "Custom Archive Titles" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
84 characters long description:
A small and simple plugin to adjust the default texts of archive titles in WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected301 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3136241301

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity20.00
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods1145.83%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin