74% post-title-furigana

Code Review | Post Title Furigana

WordPress plugin Post Title Furigana scored74%from 54 tests.

About plugin

  • Plugin page: post-title-furigana
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.7
  • WordPress version: 6.3.1
  • First release: Nov 14, 2013
  • Latest release: Nov 14, 2013
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: sysbird (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /908 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼2.70MB] [CPU: ▼328,232.39ms] Passed 4 tests

This is a short check of server-side resources used by Post Title Furigana
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0339.63 ▼8.31
Dashboard /wp-admin3.08 ▼7.4324.53 ▼1,312,811.33
Posts /wp-admin/edit.php3.08 ▼0.3231.48 ▼21.98
Add New Post /wp-admin/post-new.php3.08 ▼2.8528.42 ▼87.37
Media Library /wp-admin/upload.php3.08 ▼0.1926.21 ▼8.89

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Title Furigana
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.32 ▼0.041.85 ▼0.0940.61 ▼5.36
Dashboard /wp-admin2,204 ▲275.55 ▼0.0884.90 ▼11.8138.31 ▼8.19
Posts /wp-admin/edit.php2,109 ▲62.00 ▲0.0342.57 ▲3.1834.45 ▼2.06
Add New Post /wp-admin/post-new.php1,532 ▲12823.03 ▲5.08703.53 ▲62.1058.78 ▲11.55
Media Library /wp-admin/upload.php1,406 ▲64.14 ▼0.03122.08 ▲9.0547.27 ▲0.12
PostTitleFuriganaAdmin /wp-admin/post-title-furigana.php260.420.0715.52

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/post-title-furigana.php
    • > Network (severe)
    wp-admin/post-title-furigana.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Settings), #2 (Enter the post title)
The official readme.txt might help

post-title-furigana/post-title-furigana.php Passed 13 tests

The main file in "Post Title Furigana" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
Automatically set Japanese Reading title into the custom field.

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
Success! There were no dangerous files found in this plugin240 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13034162
PO File1121250
JavaScript12528

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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