72% itsukaita

Code Review | itsukaita

WordPress plugin itsukaita scored72%from 54 tests.

About plugin

  • Plugin page: itsukaita
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5
  • WordPress version: 6.3.1
  • First release: Feb 6, 2013
  • Latest release: Mar 12, 2013
  • Number of updates: 19
  • Update frequency: every 1.8 days
  • Top authors: kazunii (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /666 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼4.32ms] Passed 4 tests

A check of server-side resources used by itsukaita
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1341.17 ▼0.06
Dashboard /wp-admin3.44 ▲0.1349.29 ▼0.13
Posts /wp-admin/edit.php3.55 ▲0.1945.93 ▼4.18
Add New Post /wp-admin/post-new.php6.02 ▲0.1385.59 ▼12.89
Media Library /wp-admin/upload.php3.36 ▲0.1337.31 ▲3.35
itsukaita /wp-admin/options-general.php?page=itsukaita/itsukaita.php3.3029.28

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for itsukaita
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲11914.74 ▲0.441.89 ▲0.0544.40 ▲0.55
Dashboard /wp-admin2,207 ▲194.87 ▼0.98112.73 ▲2.9544.79 ▼2.06
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0633.24 ▼5.0135.15 ▲3.76
Add New Post /wp-admin/post-new.php1,517 ▼317.82 ▼5.34668.19 ▼21.8859.27 ▼9.38
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.0393.60 ▼12.5441.20 ▼3.82
itsukaita /wp-admin/options-general.php?page=itsukaita/itsukaita.php9012.3333.4943.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=itsukaita/itsukaita.php
    • > Notice in wp-content/plugins/itsukaita/itsukaita.php+111
    Undefined index: shorishubetsu
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=itsukaita/itsukaita.php
    • > Notice in wp-content/plugins/itsukaita/itsukaita.php+128
    Undefined index: lang

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× 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/itsukaita/itsukaita.php:33

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=itsukaita/itsukaita.php
    • > Network (severe)
    https://api.twitter.com/1/users/profile_image?screen_name=kazunii_ac&size=mini - Failed to load resource: the server responded with a status of 410 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: The plugin tags were not defined
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

itsukaita/itsukaita.php Passed 13 tests

"itsukaita" version 0.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
121 characters long description:
記事をいつ書いたかを分析するプラグインです。This is plug-in which analyzes when posts were written.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected937 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP46140829
JavaScript231072
CSS10036

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity2.00
▷ Minimum method complexity2.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.22MB with 0.15MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png221.94KB63.37KB▼ 71.45%