10% os-attendance-management

Code Review | 出勤・勤怠プラグイン

WordPress plugin 出勤・勤怠プラグイン scored10%from 54 tests.

About plugin

  • Plugin page: os-attendance-man...
  • Plugin version: 1.3.21
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Nov 27, 2013
  • Latest release: Sep 16, 2017
  • Number of updates: 39
  • Update frequency: every 35.6 days
  • Top authors: olivesystem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,288 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method AttendanceInstall::activationPlugin() should not be called statically

Server metrics [RAM: ▲0.48MB] [CPU: ▲0.50ms] Passed 4 tests

A check of server-side resources used by 出勤・勤怠プラグイン
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.5038.05 ▼5.74
Dashboard /wp-admin3.82 ▲0.5148.88 ▼0.68
Posts /wp-admin/edit.php3.87 ▲0.5148.08 ▲2.90
Add New Post /wp-admin/post-new.php6.34 ▲0.45120.45 ▲26.65
Media Library /wp-admin/upload.php3.68 ▲0.4538.44 ▲5.51

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 25 new files
Database: 2 new tables, 7 new options
New tables
wp_os_attendance_plugin_skillsheet_option_data
wp_os_attendance_plugin_data
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
os_attendance_management_Plugin

Browser metrics Passed 4 tests

This is an overview of browser requirements for 出勤・勤怠プラグイン
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲11413.48 ▼1.181.69 ▼0.1138.75 ▼5.41
Dashboard /wp-admin2,248 ▲605.97 ▲1.0899.50 ▼10.0247.02 ▼1.57
Posts /wp-admin/edit.php2,134 ▲452.02 ▲0.0337.92 ▼0.3642.04 ▲8.20
Add New Post /wp-admin/post-new.php1,570 ▲3723.06 ▼0.12630.14 ▼54.5559.21 ▲2.48
Media Library /wp-admin/upload.php1,436 ▲544.22 ▲0.0696.03 ▲0.4353.17 ▲8.97
/wp-admin/attendance-management-write.php260.440.0813.66
基本設定 /wp-admin/attendance-management-options.php260.440.156.96
/wp-admin/attendance-management-agreement.php260.440.106.35
/wp-admin/attendance-management-format.php260.440.096.40
出勤・勤怠プラグイン /wp-admin/attendance-management-view.php260.440.064.83
プロフ(スキル)設定 /wp-admin/attendance-management-prof-option.php260.440.096.65
出勤・勤怠の新規作成 /wp-admin/attendance-management-post.php260.440.127.05
ヘルプページ /wp-admin/attendance-management-help.php260.440.126.64
出勤・勤怠の一覧 /wp-admin/attendance-management-list.php260.440.095.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie tables were found after uninstall: 2 tables
    • wp_os_attendance_plugin_skillsheet_option_data
    • wp_os_attendance_plugin_data
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • os_attendance_management_Plugin

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following items
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'AttendanceClass' not found in wp-content/plugins/os-attendance-management/class/sqlClass.php:3
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/os-attendance-management/attendance-management.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'AttendanceClass' not found in wp-content/plugins/os-attendance-management/class/csvClass.php:3
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/os-attendance-management/attendance-management.php on line 19
    • > PHP Fatal error
      Uncaught Error: Class 'AttendanceClass' not found in wp-content/plugins/os-attendance-management/attendanceProfClass.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'AttendanceClass' not found in wp-content/plugins/os-attendance-management/attendanceAdminClass.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'AttendanceClass' not found in wp-content/plugins/os-attendance-management/attendanceMainClass.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'AttendanceClass' not found in wp-content/plugins/os-attendance-management/attendanceUserClass.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/os-attendance-management/attendance-management.php:23

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/attendance-management-write.php
    • > Network (severe)
    wp-admin/attendance-management-write.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/attendance-management-options.php
    • > Network (severe)
    wp-admin/attendance-management-options.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/attendance-management-agreement.php
    • > Network (severe)
    wp-admin/attendance-management-agreement.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/attendance-management-format.php
    • > Network (severe)
    wp-admin/attendance-management-format.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/attendance-management-view.php
    • > Network (severe)
    wp-admin/attendance-management-view.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/attendance-management-prof-option.php
    • > Network (severe)
    wp-admin/attendance-management-prof-option.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/attendance-management-post.php
    • > Network (severe)
    wp-admin/attendance-management-post.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/attendance-management-help.php
    • > Network (severe)
    wp-admin/attendance-management-help.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/attendance-management-list.php
    • > Network (severe)
    wp-admin/attendance-management-list.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: admin, plugin

os-attendance-management/attendance-management.php 92% from 13 tests

The primary PHP file in "出勤・勤怠プラグイン" version 1.3.21 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("os-attendance-management.php" instead of "attendance-management.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected3,363 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP215504873,182
CSS206181

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity58.62
▷ Minimum class complexity1.00
▷ Maximum class complexity202.00
Average method complexity4.91
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods118
▷ Static methods1311.02%
▷ Public methods9681.36%
▷ Protected methods00.00%
▷ Private methods2218.64%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/sankaku.png0.24KB0.16KB▼ 31.82%