Benchmarks
Plugin footprint 23% 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
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.93MB] [CPU: ▼54.09ms] Passed 4 tests
Server-side resources used by Form1
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 7.94 ▼36.60 |
Dashboard /wp-admin | 2.08 ▼1.22 | 6.17 ▼44.17 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.56 ▼43.12 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 6.38 ▼92.45 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 6.81 ▼29.21 |
設定 /wp-admin/admin.php?page=form1_settings | 2.08 | 6.61 |
履歴 /wp-admin/admin.php?page=form1_histories | 2.08 | 6.29 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_form1 |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Form1
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.22 ▼1.16 | 1.67 ▼0.04 | 41.54 ▼1.95 |
Dashboard /wp-admin | 2,230 ▲42 | 5.83 ▲0.98 | 95.47 ▼19.39 | 42.56 ▼8.54 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.06 ▲0.07 | 39.49 ▲2.44 | 38.92 ▲6.38 |
Add New Post /wp-admin/post-new.php | 1,559 ▲39 | 23.12 ▼0.12 | 640.82 ▼39.10 | 57.14 ▲5.44 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.21 ▲0.00 | 95.52 ▼8.58 | 45.98 ▲2.57 |
設定 /wp-admin/admin.php?page=form1_settings | 1,088 | 2.06 | 24.66 | 75.09 |
履歴 /wp-admin/admin.php?page=form1_histories | 949 | 2.21 | 25.01 | 38.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- Zombie tables were found after uninstall: 1 table
- wp_form1
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=form1_histories
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/form1/history.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/form1/history.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/form1/history.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/form1/form1.php:62
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (設定管理画面), #2 (履歴管理画面), #3 (フォーム表示例)
form1/form1.php Passed 13 tests
The principal PHP file in "Form1" v. 1.0.2 is loaded by WordPress automatically on each request
96 characters long description:
シンプルなお問い合わせフォームを設置します。履歴も管理できます。
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin662 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 92 | 12 | 661 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 24.40 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 3 | 60.00% |
Methods | 41 | |
▷ Static methods | 1 | 2.44% |
▷ Public methods | 33 | 80.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 19.51% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.34MB with 0.25MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 61.20KB | 14.59KB | ▼ 76.15% |
screenshot-2.png | 157.32KB | 44.66KB | ▼ 71.61% |
screenshot-1.png | 128.21KB | 33.99KB | ▼ 73.49% |