Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.48MB] [CPU: ▼2.02ms] Passed 4 tests
An overview of server-side resources used by 診断ジェネレータ作成プラグイン
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 43.55 ▲1.92 |
Dashboard /wp-admin | 3.82 ▲0.52 | 49.36 ▼3.39 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 55.61 ▲5.61 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 98.69 ▼12.21 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 42.81 ▲9.30 |
Server storage [IO: ▲1.38MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 56 new files
Database: 4 new tables, 9 new options
New tables |
---|
wp_os_diagnosis_generator_detail_data |
wp_os_diagnosis_generator_data |
wp_os_diagnosis_generator_form_options |
wp_os_diagnosis_generator_question_data |
New WordPress options |
---|
widget_theysaidso_widget |
os_diagnosis_generator_PluginTableVersion |
can_compress_scripts |
os_diagnosis_generator_PluginVersion |
widget_recent-comments |
theysaidso_admin_options |
os_diagnosis_generator_Plugin |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for 診断ジェネレータ作成プラグイン
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲115 | 13.88 ▼0.86 | 1.65 ▼0.06 | 44.84 ▲2.40 |
Dashboard /wp-admin | 2,254 ▲72 | 5.82 ▼0.04 | 115.40 ▲1.98 | 50.74 ▲10.00 |
Posts /wp-admin/edit.php | 2,149 ▲60 | 2.60 ▲0.61 | 44.95 ▲4.34 | 47.37 ▲12.09 |
Add New Post /wp-admin/post-new.php | 1,555 ▲27 | 23.72 ▲0.57 | 604.60 ▲8.76 | 29.11 ▼29.23 |
Media Library /wp-admin/upload.php | 1,442 ▲57 | 5.08 ▲0.86 | 106.36 ▲7.08 | 51.44 ▲7.96 |
/wp-admin/diagnosis-generator-delete.php | 26 | 0.44 | 0.13 | 13.56 |
テーマ編集 /wp-admin/diagnosis-generator-theme.php | 26 | 0.44 | 0.07 | 5.94 |
診断フォーム一覧 /wp-admin/diagnosis-generator-list.php | 26 | 0.44 | 0.11 | 6.92 |
新規作成 /wp-admin/diagnosis-generator-new.php | 26 | 0.44 | 0.09 | 6.57 |
/wp-admin/diagnosis-generator-write.php | 26 | 0.44 | 0.06 | 6.58 |
診断ジェネレータ作成プラグイン /wp-admin/diagnosis-generator-admin.php | 26 | 0.44 | 0.12 | 6.12 |
/wp-admin/diagnosis-generator-agreement.php | 26 | 0.44 | 0.10 | 5.11 |
オプション /wp-admin/diagnosis-generator-options.php | 26 | 0.44 | 0.10 | 5.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie tables detected upon uninstall: 4 tables
- wp_os_diagnosis_generator_question_data
- wp_os_diagnosis_generator_form_options
- wp_os_diagnosis_generator_data
- wp_os_diagnosis_generator_detail_data
- This plugin does not fully uninstall, leaving 9 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- os_diagnosis_generator_Plugin
- db_upgraded
- widget_recent-comments
- os_diagnosis_generator_PluginVersion
- os_diagnosis_generator_PluginTableVersion
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/os-diagnosis-generator/os-diagnosis-generator.php:33
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/os-diagnosis-generator/os-diagnosis-generator.php on line 22
- > PHP Fatal error
Uncaught Error: Class 'DiagnosisClass' not found in wp-content/plugins/os-diagnosis-generator/diagnosisAdminClass.php:2
- > PHP Fatal error
Uncaught Error: Class 'DiagnosisClass' not found in wp-content/plugins/os-diagnosis-generator/class/themeClass.php:3
- > PHP Fatal error
Uncaught Error: Class 'DiagnosisClass' not found in wp-content/plugins/os-diagnosis-generator/class/sqlClass.php:3
- > PHP Fatal error
Uncaught Error: Class 'DiagnosisClass' not found in wp-content/plugins/os-diagnosis-generator/diagnosisViewClass.php:2
- > PHP Fatal error
Uncaught Error: Class 'DiagnosisClass' not found in wp-content/plugins/os-diagnosis-generator/class/validationClass.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/diagnosis-generator-delete.php
- > Network (severe)
wp-admin/diagnosis-generator-delete.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/diagnosis-generator-theme.php
- > Network (severe)
wp-admin/diagnosis-generator-theme.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/diagnosis-generator-list.php
- > Network (severe)
wp-admin/diagnosis-generator-list.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/diagnosis-generator-new.php
- > Network (severe)
wp-admin/diagnosis-generator-new.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/diagnosis-generator-write.php
- > Network (severe)
wp-admin/diagnosis-generator-write.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/diagnosis-generator-admin.php
- > Network (severe)
wp-admin/diagnosis-generator-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/diagnosis-generator-agreement.php
- > Network (severe)
wp-admin/diagnosis-generator-agreement.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/diagnosis-generator-options.php
- > Network (severe)
wp-admin/diagnosis-generator-options.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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: plugin
os-diagnosis-generator/os-diagnosis-generator.php Passed 13 tests
The primary PHP file in "診断ジェネレータ作成プラグイン" version 1.4.10 is used by WordPress to initiate all plugin functionality
114 characters long description:
WordPressで診断ジェネレータ(診断サイト、占いサイト)を作成できるプラグインです
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin27,309 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 3,941 | 3,230 | 19,374 |
PHP | 23 | 482 | 701 | 4,812 |
CSS | 10 | 70 | 140 | 2,709 |
HTML | 1 | 84 | 15 | 414 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 37.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 180.00 |
Average method complexity | 6.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 119 | |
▷ Static methods | 111 | 93.28% |
▷ Public methods | 118 | 99.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.84% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 15 | 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
15 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
js/jquery-ui/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
js/jquery-ui/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
img/radio-button.png | 1.49KB | 0.51KB | ▼ 66.01% |
img/radio-button-checked.png | 1.64KB | 0.63KB | ▼ 61.41% |