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
- > Warning in wp-content/plugins/forms-for-mailograph/subscribe.php+25
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
Server metrics [RAM: ▼1.96MB] [CPU: ▲168.88ms] Passed 4 tests
A check of server-side resources used by Forms for Mailograph
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 259.04 ▲220.08 |
Dashboard /wp-admin | 2.05 ▼1.26 | 217.33 ▲167.88 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 228.85 ▲178.63 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 217.64 ▲125.37 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 235.27 ▲203.63 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Forms for Mailograph
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲61 | 14.74 ▲0.36 | 1.74 ▲0.06 | 38.15 ▼3.14 |
Dashboard /wp-admin | 2,211 ▲29 | 5.91 ▲1.00 | 94.65 ▼6.98 | 38.47 ▼1.16 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 1.97 ▼0.09 | 39.34 ▼5.61 | 40.10 ▲0.32 |
Add New Post /wp-admin/post-new.php | 1,419 ▼95 | 21.80 ▲4.25 | 539.22 ▼116.27 | 29.71 ▼14.61 |
Media Library /wp-admin/upload.php | 1,393 ▲8 | 4.29 ▲0.07 | 100.15 ▼1.54 | 41.62 ▼5.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/forms-for-mailograph/subscribe.php+25
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/forms-for-mailograph/subscribe.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/forms-for-mailograph/forms-for-mailograph.php:15
- > PHP Warning
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in wp-content/plugins/forms-for-mailograph/subscribe.php on line 25
- > PHP Warning
file_get_contents(http://app.mailograph.com/subscribe): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in wp-content/plugins/forms-for-mailograph/subscribe.php on line 25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== forms-for-mailograph ===
)
forms-for-mailograph/subscribe.php 92% from 13 tests
This is the main PHP file of "Forms for Mailograph" version 0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("forms-for-mailograph.php" instead of "subscribe.php")
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 detected133 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 16 | 50 | 133 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin