84% 17sai-kyou

Code Review | 17sai-kyou

WordPress plugin 17sai-kyou scored84%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: 6.3.1
  • 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,280 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.02MB] [CPU: ▼9.84ms] Passed 4 tests

A check of server-side resources used by 17sai-kyou
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.46 ▼4.45
Dashboard /wp-admin3.33 ▲0.0248.61 ▼3.02
Posts /wp-admin/edit.php3.39 ▲0.0251.91 ▼4.09
Add New Post /wp-admin/post-new.php5.92 ▲0.0286.01 ▼27.79
Media Library /wp-admin/upload.php3.26 ▲0.0239.67 ▲1.56

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for 17sai-kyou
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲7814.69 ▲0.321.66 ▲0.0344.15 ▼2.40
Dashboard /wp-admin2,230 ▲535.66 ▼0.0188.61 ▲1.3844.44 ▼1.60
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0235.62 ▼0.3433.15 ▼0.83
Add New Post /wp-admin/post-new.php1,545 ▲1918.00 ▼5.85615.65 ▼90.8175.89 ▲16.25
Media Library /wp-admin/upload.php1,397 ▼04.19 ▲0.0397.08 ▼6.9341.22 ▼8.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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

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
These attributes need to be fixed:
  • Donate link: Invalid URI found ("")
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === 17sai-kyou === )
You can take inspiration from this readme.txt

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

Analyzing the main PHP file in "17sai-kyou" version 1.0
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 | This is a short overview of programming languages used in this plugin, detecting executable files
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

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin