94% 17sai-kyou

Code Review | 17sai-kyou

WordPress plugin 17sai-kyou scored 94% from 54 tests.

About plugin

  • Plugin page: 17sai-kyou
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8
  • WordPress version: 5.9.2
  • First release: Feb 2, 2014
  • Latest release: Feb 2, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: mebius0 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,071 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼314.13ms] Passed 4 tests

This is a short check of server-side resources used by 17sai-kyou
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0356.82 ▲5.20
Dashboard /wp-admin3.43 ▲0.0233.92 ▼6.33
Posts /wp-admin/edit.php3.67 ▲0.03147.57 ▲73.99
Add New Post /wp-admin/post-new.php6.90 ▼0.07116.21 ▼1,257.70
Media Library /wp-admin/upload.php3.32 ▲0.0227.66 ▲2.31

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

17sai-kyou: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,811 ▲5715.68 ▼0.276.11 ▼0.212.26 ▼0.36
Dashboard /wp-admin2,943 ▲896.04 ▼0.12124.50 ▼15.50184.45 ▲28.08
Posts /wp-admin/edit.php2,694 ▼03.24 ▼0.0065.80 ▲2.16140.75 ▼9.21
Add New Post /wp-admin/post-new.php1,758 ▼1522.19 ▲1.10490.86 ▲24.56200.41 ▲23.07
Media Library /wp-admin/upload.php1,698 ▼05.55 ▲0.02150.66 ▲11.07186.34 ▼24.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/17sai-kyou/17sai-admin.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/17sai-kyou/17sai-admin.php:22

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 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === 17sai-kyou === )
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

17sai-kyou/17sai-kyou.php Passed 13 tests

The primary PHP file in "17sai-kyou" version 1.0 is used by WordPress to initiate all plugin functionality
37 characters long description:
It is a plug-in for 「17 sai kyou」

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin141 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3232890
PO File210051

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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 functions6100.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
There are no PNG files in this plugin