10% os-nippo

Code Review | OS日報プラグイン

WordPress plugin OS日報プラグイン scored10%from 54 tests.

About plugin

  • Plugin page: os-nippo
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.7.3
  • WordPress version: 6.3.1
  • First release: May 13, 2015
  • Latest release: Apr 12, 2017
  • Number of updates: 6
  • Update frequency: every 116.5 days
  • Top authors: olivesystem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,172 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method osNippoPluginInstallClass::my_register_activation_func() should not be called statically

Server metrics [RAM: ▼1.69MB] [CPU: ▼51.32ms] Passed 4 tests

This is a short check of server-side resources used by OS日報プラグイン
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.31 ▼1.157.98 ▼28.49
Dashboard /wp-admin2.33 ▼1.029.26 ▼51.02
Posts /wp-admin/edit.php2.33 ▼1.039.15 ▼38.79
Add New Post /wp-admin/post-new.php2.33 ▼3.569.54 ▼86.97
Media Library /wp-admin/upload.php2.33 ▼0.909.64 ▼23.35
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=nippo-post12.339.61
Add New /wp-admin/post-new.php?post_type=nippo-post12.3310.40
日報の管理 /wp-admin/edit.php?post_type=nippo-post12.3314.57

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: 3 new tables, 7 new options
New tables
wp_osnp_theme_form_data
wp_osnp_theme_data
wp_osnp_theme_input_data
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
category_children
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for OS日報プラグイン
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲22213.61 ▼0.588.97 ▲7.3041.51 ▲0.92
Dashboard /wp-admin2,285 ▲975.88 ▼0.14100.93 ▼18.6653.55 ▲9.20
Posts /wp-admin/edit.php2,165 ▲762.03 ▲0.0341.96 ▲7.1952.81 ▲19.12
Add New Post /wp-admin/post-new.php1,600 ▲6718.20 ▼4.92659.35 ▲53.8654.06 ▲2.16
Media Library /wp-admin/upload.php1,464 ▲824.30 ▲0.0494.74 ▼10.9150.44 ▲6.82
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=nippo-post11,5222.1527.3842.84
OS日報プラグイン /wp-admin/osnp-admin.php260.440.1313.78
設定 /wp-admin/osnp-options.php260.440.076.26
/wp-admin/osnp-postsingle.php260.440.067.20
日報テーマ作成・編集 /wp-admin/osnp-theme.php260.440.086.71
/wp-admin/osnp-agreement.php260.440.085.44
Add New /wp-admin/post-new.php?post_type=nippo-post110,7257.70193.46104.10
日報の管理 /wp-admin/edit.php?post_type=nippo-post11,1641.9630.5351.66
日報の投稿一覧 /wp-admin/osnp-postlist.php260.440.076.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method osNippoPluginCommonClass::plugin_get_option() should not be called statically
  • This plugin does not fully uninstall, leaving 3 tables in the database
    • wp_osnp_theme_data
    • wp_osnp_theme_input_data
    • wp_osnp_theme_form_data
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • category_children
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=nippo-post1
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method osNippoPluginCommonClass::plugin_get_option() should not be called statically
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=nippo-post1
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method osNippoPostClass::codex_custom_init() should not be called statically
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=nippo-post1
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-content/plugins/os-nippo/class/nippoPostClass.php+22
    Non-static method osNippoThemeClass::getThemeList() should not be called statically
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=nippo-post1
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method osNippoAdminClass::menuViews() should not be called statically
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=nippo-post1
    • > User deprecated in wp-includes/functions.php+5453
    Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=nippo-post1
    • > Deprecated in wp-content/plugins/os-nippo/class/adminClass.php+30
    Non-static method osNippoAdminClass::_menuViews() should not be called statically
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=nippo-post1
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method osNippoAdminClass::actionAdminInit() should not be called statically
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=nippo-post1
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method osNippoPostClass::custom_meta_init() should not be called statically
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=nippo-post1
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method osNippoPostClass::postlist_redirect() should not be called statically
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=nippo-post1
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method osNippoPluginCommonClass::os_wp_enqueue() should not be called statically
    • > GET request to /wp-admin/post-new.php?post_type=nippo-post1
    • > Deprecated in wp-includes/class-wp-hook.php+312
    Non-static method osNippoPostClass::custom_save_postdata() should not be called statically
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nippo-post1
    • > Deprecated in wp-admin/includes/template.php+1443
    Non-static method osNippoPostClass::inner_custom_box() should not be called statically
  • 23 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nippo-post1
    • > Deprecated in wp-content/plugins/os-nippo/class/nippoPostClass.php+191
    Non-static method osNippoPostClass::ymdhis_explode() should not be called statically
    • > GET request to /wp-admin/post-new.php?post_type=nippo-post1
    • > Deprecated in wp-content/plugins/os-nippo/class/nippoPostClass.php+214
    Non-static method osNippoPostClass::year_select_options() should not be called statically
    • > GET request to /wp-admin/post-new.php?post_type=nippo-post1
    • > Deprecated in wp-content/plugins/os-nippo/class/nippoPostClass.php+218
    Non-static method osNippoPostClass::month_select_options() should not be called statically
  • 46 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nippo-post1
    • > Deprecated in wp-content/plugins/os-nippo/class/nippoPostClass.php+375
    Non-static method osNippoPostClass::mdhi_select_options() should not be called statically
    • > GET request to /wp-admin/post-new.php?post_type=nippo-post1
    • > Deprecated in wp-content/plugins/os-nippo/class/nippoPostClass.php+222
    Non-static method osNippoPostClass::day_select_options() should not be called statically
  • 22 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nippo-post1
    • > Deprecated in wp-content/plugins/os-nippo/class/nippoPostClass.php+226
    Non-static method osNippoPostClass::hour_select_options() should not be called statically
  • 22 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nippo-post1
    • > Deprecated in wp-content/plugins/os-nippo/class/nippoPostClass.php+230
    Non-static method osNippoPostClass::min_select_options() should not be called statically

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 31× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      Use of undefined constant OSNP_PLUGIN_FUNCTION_DIR - assumed 'OSNP_PLUGIN_FUNCTION_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/os-nippo/functionCall.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'osNippoPluginCommonClass' not found in wp-content/plugins/os-nippo/class/nippoPostClass.php:3
    • > PHP Warning
      include_once(): Failed opening 'OSNP_PLUGIN_CLASS_DIR/installClass.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/os-nippo/classCall.php on line 3
    • > PHP Warning
      include_once(OSNP_PLUGIN_CLASS_DIR/nippoListClass.php): failed to open stream: No such file or directory in wp-content/plugins/os-nippo/classCall.php on line 9
    • > PHP Warning
      include_once(OSNP_PLUGIN_FUNCTION_DIR/timezone.php): failed to open stream: No such file or directory in wp-content/plugins/os-nippo/functionCall.php on line 2
    • > PHP Warning
      include_once(): Failed opening 'OSNP_PLUGIN_CLASS_DIR/nippoListClass.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/os-nippo/classCall.php on line 9
    • > PHP Warning
      include_once(): Failed opening 'OSNP_PLUGIN_CLASS_DIR/commonClass.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/os-nippo/classCall.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'osNippoPluginCommonClass' not found in wp-content/plugins/os-nippo/class/validationClass.php:3
    • > PHP Warning
      include_once(OSNP_PLUGIN_CLASS_DIR/commonClass.php): failed to open stream: No such file or directory in wp-content/plugins/os-nippo/classCall.php on line 5
    • > PHP Warning
      Use of undefined constant OSNP_PLUGIN_CLASS_DIR - assumed 'OSNP_PLUGIN_CLASS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/os-nippo/classCall.php on line 6

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/osnp-admin.php
    • > Network (severe)
    wp-admin/osnp-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/osnp-options.php
    • > Network (severe)
    wp-admin/osnp-options.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/osnp-postsingle.php
    • > Network (severe)
    wp-admin/osnp-postsingle.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/osnp-theme.php
    • > Network (severe)
    wp-admin/osnp-theme.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/osnp-agreement.php
    • > Network (severe)
    wp-admin/osnp-agreement.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/osnp-postlist.php
    • > Network (severe)
    wp-admin/osnp-postlist.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 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: admin, plugin

os-nippo/os-nippo.php Passed 13 tests

The main PHP file in "OS日報プラグイン" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
60 characters long description:
WordPressで日報を作成できるプラグインです。

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 detected3,192 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP222264282,951
CSS2013240
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity49.75
▷ Minimum class complexity1.00
▷ Maximum class complexity183.00
Average method complexity6.34
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods73
▷ Static methods00.00%
▷ Public methods6791.78%
▷ Protected methods00.00%
▷ Private methods68.22%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.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
No PNG images were found in this plugin