Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/myform-jp/myform-jp.php+36
Use of undefined constant basedir - assumed 'basedir' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.93MB] [CPU: ▼48.89ms] Passed 4 tests
An overview of server-side resources used by myform-jp
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 5.76 ▼32.89 |
Dashboard /wp-admin | 2.08 ▼1.22 | 8.10 ▼37.03 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 7.07 ▼38.96 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.37 ▼86.69 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 6.85 ▼26.89 |
定義済情報の取得 /wp-admin/admin.php?page=myformjp-gets | 2.08 | 6.47 |
環境定義[contact] /wp-admin/admin.php?page=myformjp-0 | 2.10 | 6.97 |
Server storage [IO: ▲0.15MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 9 new options
New WordPress options |
---|
myformjp_mail |
myformjp_define[contact] |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
myformjp_params |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
myform-jp: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.21 ▼1.17 | 1.97 ▲0.29 | 45.24 ▲7.22 |
Dashboard /wp-admin | 2,236 ▲44 | 4.83 ▼0.12 | 98.02 ▼14.47 | 42.49 ▲3.88 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.01 ▼0.03 | 39.70 ▲5.12 | 43.21 ▲10.84 |
Add New Post /wp-admin/post-new.php | 1,555 ▲18 | 23.21 ▲0.06 | 665.32 ▼22.60 | 63.87 ▼1.82 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.20 ▼0.01 | 111.99 ▲6.54 | 56.26 ▲11.10 |
定義済情報の取得 /wp-admin/admin.php?page=myformjp-gets | 774 | 2.03 | 23.38 | 46.48 |
環境定義[contact] /wp-admin/admin.php?page=myformjp-0 | 1,024 | 2.16 | 23.05 | 69.12 |
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
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/myform-jp/myform-jp.php+36
Use of undefined constant basedir - assumed 'basedir' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- myformjp_define[contact]
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% 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=myformjp-0
- > Warning in wp-content/plugins/myform-jp/myform-jp.php+36
Use of undefined constant basedir - assumed 'basedir' (this will throw an Error in a future version of PHP)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=myformjp-0
- > Notice in wp-content/plugins/myform-jp/include/myformjp_dsystem_class.php+22
Undefined variable: dba
- > GET request to /wp-admin/admin.php?page=myformjp-gets
- > Warning in wp-content/plugins/myform-jp/admin.php+181
copy(/pt1_simpty.sqlite3): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=myformjp-0
- > Notice in wp-content/plugins/myform-jp/admin.php+141
Undefined variable: pul
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (https://pierre-soft.com/myform/screenshot.png) image required
myform-jp/myform-jp.php Passed 13 tests
"myform-jp" version 1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
49 characters long description:
This software is inquiry form for the individual.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,043 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 79 | 72 | 1,404 |
CSS | 1 | 8 | 21 | 410 |
JavaScript | 5 | 1 | 16 | 206 |
PO File | 1 | 3 | 4 | 23 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 95.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 168.00 |
Average method complexity | 5.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 80.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 22 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot.png | 8.03KB | 4.28KB | ▼ 46.62% |