Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.20ms] Passed 4 tests
This is a short check of server-side resources used by FormMemory
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.40 ▼5.31 |
Dashboard /wp-admin | 3.36 ▲0.06 | 51.12 ▼3.09 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 49.08 ▲0.97 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 90.06 ▼7.10 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.84 ▼1.30 |
FormMemory /wp-admin/options-general.php?page=formmem | 3.25 | 33.95 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
formmem_settings |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for FormMemory
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲116 | 13.34 ▼1.01 | 7.72 ▲5.22 | 43.79 ▼0.44 |
Dashboard /wp-admin | 2,199 ▲22 | 5.64 ▲0.07 | 87.93 ▼12.44 | 40.07 ▼3.52 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.04 | 33.93 ▲0.12 | 34.06 ▼3.59 |
Add New Post /wp-admin/post-new.php | 1,529 ▼2 | 23.04 ▲0.26 | 646.66 ▲44.66 | 50.20 ▲2.58 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.30 ▲0.07 | 99.46 ▼1.08 | 44.00 ▲2.64 |
FormMemory /wp-admin/options-general.php?page=formmem | 921 | 2.01 | 23.21 | 50.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- formmem_settings
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/formmemory/admin/formmemory-admin.php
- > /wp-content/plugins/formmemory/formmemory.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: pre-fill, remember, contact form, memory, store...
formmemory/formmemory.php Passed 13 tests
"FormMemory" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
97 characters long description:
Your contact forms will remember and pre-fill previous user input, storing it safely client-side.
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
No dangerous file extensions were detected649 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 72 | 42 | 315 |
JavaScript | 1 | 56 | 27 | 247 |
CSS | 2 | 17 | 0 | 87 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/formmemory-icon-b-transp-64.png | 0.90KB | 1.12KB | 0.00% |