Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/allpost-contactform/allpost-contactform-language.php+7
Undefined index: HTTP_ACCEPT_LANGUAGE
Server metrics [RAM: ▼1.90MB] [CPU: ▼53.68ms] Passed 4 tests
An overview of server-side resources used by All Post Contact Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 5.29 ▼35.14 |
Dashboard /wp-admin | 2.12 ▼1.19 | 7.05 ▼46.76 |
Posts /wp-admin/edit.php | 2.12 ▼1.25 | 8.33 ▼39.55 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.78 | 6.28 ▼93.25 |
Media Library /wp-admin/upload.php | 2.12 ▼1.12 | 5.70 ▼30.82 |
Contact Form /wp-admin/options-general.php?page=allpost-contactform/allpost-contactform.php | 2.12 | 6.38 |
Server storage [IO: ▲3.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
allpost_contactform_options |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by All Post Contact Form
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲63 | 14.35 ▲0.21 | 1.93 ▲0.14 | 39.65 ▼6.68 |
Dashboard /wp-admin | 2,201 ▲20 | 5.57 ▼0.15 | 86.29 ▼16.55 | 38.12 ▲0.57 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.01 ▼0.00 | 37.79 ▼0.77 | 35.33 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,531 ▼5 | 23.18 ▼0.16 | 629.86 ▼22.94 | 46.17 ▼8.99 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.18 ▲0.00 | 102.80 ▲2.75 | 42.77 ▲2.09 |
Contact Form /wp-admin/options-general.php?page=allpost-contactform/allpost-contactform.php | 1,081 | 2.00 | 24.17 | 46.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/allpost-contactform/allpost-contactform-language.php+7
Undefined index: HTTP_ACCEPT_LANGUAGE
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- allpost_contactform_options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 63 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=allpost-contactform/allpost-contactform.php
- > Notice in wp-content/plugins/allpost-contactform/allpost-contactform-language.php+11
Undefined index: HTTP_ACCEPT_LANGUAGE
SRP 0% 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
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/allpost-contactform/rl-apcf-admin-ar.php
- > /wp-content/plugins/allpost-contactform/rl-apcf-admin-zh.php
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/allpost-contactform/allpost-contactform-core.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/allpost-contactform/allpost-contactform-language.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/allpost-contactform/assets/header_apcf.php:7
- > PHP Notice
Undefined variable: key in wp-content/plugins/allpost-contactform/allpost-contactform-str_replace.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/allpost-contactform/assets/apcf_template.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/allpost-contactform/allpost-contactform-admin-ui.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/allpost-contactform/allpost-contactform-admin-view.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/allpost-contactform/assets/apcf_template_ja.php:6
- > PHP Notice
Undefined variable: value in wp-content/plugins/allpost-contactform/allpost-contactform-str_replace.php on line 16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: These screenshots require images: #15 (screenshot-15.png: Added the function to add multiple subjects to one form.), #16 (screenshot-16.png: 「一つのフォームに複数の件名を付けた」ところ), #13 (screenshot-13.png: Added a function of receiving an attachment file to screenshot-3.png), #14 (screenshot-14.png: screenshot-8.pngに添付ファイル受信機能を追加したところ)
allpost-contactform/allpost-contactform.php 85% from 13 tests
The primary PHP file in "All Post Contact Form" version 1.5.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 172 characters long)
- Text Domain: The text domain should only use lowercase characters and dashes
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
No dangerous file extensions were detected1,135 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 125 | 184 | 884 |
CSS | 2 | 9 | 49 | 247 |
JavaScript | 2 | 23 | 67 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 1.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 5 | 14.29% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 2.97MB with 1.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 218.78KB | 71.38KB | ▼ 67.37% |
assets/screenshot-14.png | 79.24KB | 79.27KB | 0.00% |
assets/banner-1544x500.png | 730.67KB | 257.63KB | ▼ 64.74% |
assets/icon-128x128.png | 57.04KB | 16.77KB | ▼ 70.60% |
assets/screenshot-4.png | 90.79KB | 90.79KB | 0.00% |