Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼0.63ms] Passed 4 tests
This is a short check of server-side resources used by OS-WPカスタマイズプラグイン
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 42.84 ▼1.09 |
Dashboard /wp-admin | 3.66 ▲0.36 | 56.67 ▼1.01 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 52.15 ▼1.68 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 98.33 ▲1.26 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 42.25 ▲1.77 |
管理画面の制限 /wp-admin/admin.php?page=os-wpc-admin.php&mode=admin_menu | 3.47 | 37.41 |
権限の追加・編集 /wp-admin/admin.php?page=os-wpc-admin.php&mode=role_edit | 3.47 | 36.10 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_os_wpc_detail_data |
wp_os_wpc_data |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for OS-WPカスタマイズプラグイン
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲103 | 14.48 ▲0.22 | 1.82 ▼0.03 | 44.20 ▲2.72 |
Dashboard /wp-admin | 2,270 ▲67 | 5.79 ▼0.11 | 111.38 ▼1.72 | 54.10 ▲9.43 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.04 ▼0.01 | 35.61 ▼4.29 | 43.14 ▲4.13 |
Add New Post /wp-admin/post-new.php | 1,584 ▲50 | 23.32 ▲0.27 | 612.45 ▼26.21 | 69.83 ▲14.25 |
Media Library /wp-admin/upload.php | 1,443 ▲43 | 4.24 ▲0.03 | 103.36 ▼12.15 | 54.52 ▲6.21 |
はじめに /wp-admin/os-wpc-admin.php | 26 | 0.44 | 0.10 | 13.91 |
プラグインの設定 /wp-admin/os-wpc-option.php | 26 | 0.44 | 0.11 | 5.55 |
管理画面の制限 /wp-admin/admin.php?page=os-wpc-admin.php&mode=admin_menu | 982 | 2.01 | 25.84 | 109.85 |
ページ表示制限のショートコード /wp-admin/os-wpc-accesslimit.php | 26 | 0.44 | 0.09 | 6.12 |
権限の追加・編集 /wp-admin/admin.php?page=os-wpc-admin.php&mode=role_edit | 967 | 2.02 | 26.45 | 58.36 |
独自ログインフォーム /wp-admin/os-wpc-customlogin.php | 26 | 0.44 | 0.10 | 7.53 |
その他カスタマイズ /wp-admin/os-wpc-etc.php | 26 | 0.44 | 0.09 | 6.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables detected upon uninstall: 2 tables
- wp_os_wpc_detail_data
- wp_os_wpc_data
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
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
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=os-wpc-admin.php&mode=role_edit
- > Notice in wp-content/plugins/os-wpc/oswpcAdmin.php+114
Undefined variable: myid
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
Almost there! Just fix the following items
- 32× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant OSWPC_PLUGIN_DIR - assumed 'OSWPC_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/os-wpc/oswpcAdmin.php on line 3
- > PHP Warning
include_once(): Failed opening 'OSWPC_PLUGIN_DIRclass/etcClass.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/os-wpc/oswpcAdmin.php on line 7
- > PHP Warning
include_once(OSWPC_PLUGIN_DIRclass/customLoginClass.php): failed to open stream: No such file or directory in wp-content/plugins/os-wpc/oswpcAdmin.php on line 6
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/os-wpc/os-wp-customized.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'OswpcCommonClass' not found in wp-content/plugins/os-wpc/class/roleClass.php:5
- > PHP Fatal error
Uncaught Error: Class 'OswpcCommonClass' not found in wp-content/plugins/os-wpc/class/customLoginClass.php:5
- > PHP Warning
include_once(): Failed opening 'OSWPC_PLUGIN_DIRclass/adminOptionsClass.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/os-wpc/oswpcAdmin.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'OswpcCommonClass' not found in wp-content/plugins/os-wpc/class/adminOptionsClass.php:5
- > PHP Warning
Use of undefined constant OSWPC_PLUGIN_DIR - assumed 'OSWPC_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/os-wpc/oswpcAdmin.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'OswpcCommonClass' not found in wp-content/plugins/os-wpc/class/etcClass.php:5
- > 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 browser errors
- > GET request to /wp-admin/os-wpc-admin.php
- > Network (severe)
wp-admin/os-wpc-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/os-wpc-option.php
- > Network (severe)
wp-admin/os-wpc-option.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/os-wpc-accesslimit.php
- > Network (severe)
wp-admin/os-wpc-accesslimit.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/os-wpc-customlogin.php
- > Network (severe)
wp-admin/os-wpc-customlogin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/os-wpc-etc.php
- > Network (severe)
wp-admin/os-wpc-etc.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: wpc
os-wpc/os-wp-customized.php 85% from 13 tests
The main file in "OS-WPカスタマイズプラグイン" v. 1.5.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("os-wpc.php" instead of "os-wp-customized.php")
- Description: Keep the plugin description shorter than 140 characters (currently 171 characters long)
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
Success! There were no dangerous files found in this plugin2,859 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 265 | 509 | 2,574 |
CSS | 1 | 1 | 2 | 284 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 35.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 6.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 76 | 84.44% |
▷ Public methods | 90 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin