84% taro-nickname-for-woo

Code Review | Taro Nickname for Woo

WordPress plugin Taro Nickname for Woo scored84%from 54 tests.

About plugin

  • Plugin page: taro-nickname-for...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 12, 2017
  • Latest release: Oct 12, 2017
  • Number of updates: 12
  • Update frequency: every 4.1 days
  • Top authors: Takahashi_Fumiki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /777 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.01MB] [CPU: ▼8.40ms] Passed 4 tests

A check of server-side resources used by Taro Nickname for Woo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.94 ▼3.08
Dashboard /wp-admin3.31 ▲0.0148.95 ▼7.54
Posts /wp-admin/edit.php3.37 ▲0.0153.64 ▲2.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.29 ▼22.46
Media Library /wp-admin/upload.php3.24 ▲0.0137.39 ▼0.50

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

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

Browser metrics Passed 4 tests

Taro Nickname for Woo: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.28 ▼0.081.85 ▲0.0544.80 ▲3.01
Dashboard /wp-admin2,197 ▲205.59 ▼0.0697.24 ▼9.9841.48 ▼1.61
Posts /wp-admin/edit.php2,084 ▼161.99 ▼0.0335.42 ▼1.0036.84 ▲1.18
Add New Post /wp-admin/post-new.php1,598 ▲6722.41 ▼0.80696.21 ▲2.1030.14 ▼28.26
Media Library /wp-admin/upload.php1,396 ▼44.21 ▲0.05103.62 ▼16.2044.49 ▼6.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/taro-nickname-for-woo/includes/setting.php
    • > /wp-content/plugins/taro-nickname-for-woo/includes/field.php
    • > /wp-content/plugins/taro-nickname-for-woo/taro-nickname-for-woo.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: account, woocommerce

taro-nickname-for-woo/taro-nickname-for-woo.php 85% from 13 tests

The primary PHP file in "Taro Nickname for Woo" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.7.0" instead of "3.0.0")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin160 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3127797
PO File1161663

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.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