Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin did not install without errors
- > User notice in wp-includes/functions.php+5768
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: ▼2.49MB] [CPU: ▼348.22ms] Passed 4 tests
An overview of server-side resources used by Form1
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.87 ▼1.64 | 5.39 ▼46.94 |
Dashboard /wp-admin | 1.89 ▼1.51 | 3.71 ▼30.80 |
Posts /wp-admin/edit.php | 1.89 ▼1.75 | 3.85 ▼34.03 |
Add New Post /wp-admin/post-new.php | 1.89 ▼5.08 | 4.44 ▼1,281.09 |
Media Library /wp-admin/upload.php | 1.89 ▼1.40 | 4.77 ▼21.51 |
設定 /wp-admin/admin.php?page=form1_settings | 1.89 | 4.58 |
履歴 /wp-admin/admin.php?page=form1_histories | 1.89 | 5.26 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: 1 new table, no new options
New tables |
---|
wp_form1 |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Form1
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,817 ▲95 | 16.23 ▲0.20 | 5.56 ▲0.07 | 2.25 ▲0.17 |
Dashboard /wp-admin | 2,923 ▲69 | 6.13 ▼0.03 | 121.49 ▼10.81 | 171.50 ▲7.44 |
Posts /wp-admin/edit.php | 2,725 ▲31 | 3.23 ▼0.01 | 62.69 ▼1.38 | 151.99 ▲2.03 |
Add New Post /wp-admin/post-new.php | 1,683 ▲28 | 17.01 ▼3.50 | 422.67 ▲0.27 | 171.59 ▼21.66 |
Media Library /wp-admin/upload.php | 1,732 ▲40 | 5.48 ▼0.11 | 146.21 ▼3.09 | 202.17 ▼42.14 |
設定 /wp-admin/admin.php?page=form1_settings | 1,444 | 2.37 | 57.44 | 220.87 |
履歴 /wp-admin/admin.php?page=form1_histories | 1,208 | 2.37 | 53.94 | 121.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5768
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 detected upon uninstall: 1 table
- wp_form1
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=form1_histories
- > User notice in wp-includes/functions.php+5768
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > 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 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 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
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (設定管理画面), #2 (履歴管理画面), #3 (フォーム表示例)
form1/form1.php Passed 13 tests
The entry point to "Form1" version 1.0.2 is a PHP file that has certain tags in its header comment area
96 characters long description:
シンプルなお問い合わせフォームを設置します。履歴も管理できます。
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable 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
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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-1.png | 128.21KB | 33.99KB | ▼ 73.49% |
screenshot-2.png | 157.32KB | 44.66KB | ▼ 71.61% |