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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.31 ▼1.15 | 7.98 ▼28.49 |
Dashboard /wp-admin | 2.33 ▼1.02 | 9.26 ▼51.02 |
Posts /wp-admin/edit.php | 2.33 ▼1.03 | 9.15 ▼38.79 |
Add New Post /wp-admin/post-new.php | 2.33 ▼3.56 | 9.54 ▼86.97 |
Media Library /wp-admin/upload.php | 2.33 ▼0.90 | 9.64 ▼23.35 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=nippo-post1 | 2.33 | 9.61 |
Add New /wp-admin/post-new.php?post_type=nippo-post1 | 2.33 | 10.40 |
日報の管理 /wp-admin/edit.php?post_type=nippo-post1 | 2.33 | 14.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲222 | 13.61 ▼0.58 | 8.97 ▲7.30 | 41.51 ▲0.92 |
Dashboard /wp-admin | 2,285 ▲97 | 5.88 ▼0.14 | 100.93 ▼18.66 | 53.55 ▲9.20 |
Posts /wp-admin/edit.php | 2,165 ▲76 | 2.03 ▲0.03 | 41.96 ▲7.19 | 52.81 ▲19.12 |
Add New Post /wp-admin/post-new.php | 1,600 ▲67 | 18.20 ▼4.92 | 659.35 ▲53.86 | 54.06 ▲2.16 |
Media Library /wp-admin/upload.php | 1,464 ▲82 | 4.30 ▲0.04 | 94.74 ▼10.91 | 50.44 ▲6.82 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=nippo-post1 | 1,522 | 2.15 | 27.38 | 42.84 |
OS日報プラグイン /wp-admin/osnp-admin.php | 26 | 0.44 | 0.13 | 13.78 |
設定 /wp-admin/osnp-options.php | 26 | 0.44 | 0.07 | 6.26 |
/wp-admin/osnp-postsingle.php | 26 | 0.44 | 0.06 | 7.20 |
日報テーマ作成・編集 /wp-admin/osnp-theme.php | 26 | 0.44 | 0.08 | 6.71 |
/wp-admin/osnp-agreement.php | 26 | 0.44 | 0.08 | 5.44 |
Add New /wp-admin/post-new.php?post_type=nippo-post1 | 10,725 | 7.70 | 193.46 | 104.10 |
日報の管理 /wp-admin/edit.php?post_type=nippo-post1 | 1,164 | 1.96 | 30.53 | 51.66 |
日報の投稿一覧 /wp-admin/osnp-postlist.php | 26 | 0.44 | 0.07 | 6.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
- > PHP Warning
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 226 | 428 | 2,951 |
CSS | 2 | 0 | 13 | 240 |
JavaScript | 1 | 0 | 0 | 1 |
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 code | 0.56 |
Average class complexity | 49.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 6.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 67 | 91.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 8.22% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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