Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.66ms] Passed 4 tests
A check of server-side resources used by Gravity Forms Addon - Monthpicker
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.09 ▼0.98 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.89 ▲0.78 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.78 ▼2.32 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.33 ▼20.11 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.57 ▲3.26 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Gravity Forms Addon - Monthpicker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.32 ▼0.09 | 1.73 ▲0.07 | 45.36 ▲7.52 |
Dashboard /wp-admin | 2,198 ▲17 | 5.62 ▼0.09 | 84.61 ▼17.30 | 37.00 ▼6.04 |
Posts /wp-admin/edit.php | 2,082 ▼18 | 2.01 ▲0.06 | 34.41 ▼5.25 | 31.76 ▼1.65 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.35 ▲0.11 | 677.80 ▼10.55 | 51.94 ▼5.09 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.19 ▲0.12 | 109.85 ▲11.88 | 47.32 ▲3.94 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'GF_Field' not found in wp-content/plugins/gravity-froms-monthpicker/class-gf-field-monthpicker.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-froms-monthpicker/gravityforms-monthpicker.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== gravity-froms-monthpicker ===
)
gravity-froms-monthpicker/gravityforms-monthpicker.php 77% from 13 tests
This is the main PHP file of "Gravity Forms Addon - Monthpicker" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gravity-froms-monthpicker.php" instead of "gravityforms-monthpicker.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
There were no executable files found in this plugin336 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 54 | 40 | 221 |
CSS | 2 | 7 | 20 | 70 |
JavaScript | 1 | 15 | 31 | 39 |
Markdown | 1 | 4 | 0 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui-icons_0073ea_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/ui-bg_flat_75_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
images/ui-bg_highlight-soft_50_dddddd_1x100.png | 0.27KB | 0.14KB | ▼ 48.21% |
images/ui-bg_flat_0_eeeeee_40x100.png | 0.21KB | 0.08KB | ▼ 60.45% |
images/ui-icons_666666_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |