Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.20ms] Passed 4 tests
An overview of server-side resources used by Marketo Forms
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.35 ▲3.40 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.64 ▼6.02 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 50.95 ▲1.20 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.64 ▼14.66 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.09 ▲2.68 |
Marketo Forms /wp-admin/options-general.php?page=mf_options | 3.21 | 33.69 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
mf_forms_base_url |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Marketo Forms
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,148 ▲387 | 14.13 ▼0.45 | 20.74 ▲18.88 | 36.85 ▼10.33 |
Dashboard /wp-admin | 2,203 ▲28 | 5.51 ▼0.32 | 97.78 ▼23.97 | 42.00 ▼0.01 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.02 ▼0.01 | 40.00 ▲2.76 | 36.21 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.08 ▼0.08 | 626.18 ▼86.15 | 66.54 ▲14.13 |
Media Library /wp-admin/upload.php | 1,405 ▲11 | 4.20 ▼0.07 | 99.78 ▼10.83 | 39.22 ▼9.43 |
Marketo Forms /wp-admin/options-general.php?page=mf_options | 810 | 2.01 | 25.92 | 25.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- mf_forms_base_url
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'awis_marketo_forms\\inc\\Plugin' not found in wp-content/plugins/marketofroms/MF_Plugin.php:5
- > PHP Fatal error
Uncaught Error: Class 'awis_marketo_forms\\inc\\Plugin_Public' not found in wp-content/plugins/marketofroms/pbl/MF_Public.php:7
- > PHP Fatal error
Uncaught Error: Class 'awis_marketo_forms\\inc\\Plugin_Admin' not found in wp-content/plugins/marketofroms/adm/MF_Admin.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== marketofroms ===
)
marketofroms/init.php 92% from 13 tests
The main file in "Marketo Forms" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("marketofroms.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected573 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 99 | 157 | 293 |
CSS | 2 | 42 | 4 | 246 |
JavaScript | 2 | 6 | 2 | 34 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 4 | 44.44% |
▷ Concrete classes | 5 | 55.56% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 9 | 23.68% |
▷ Public methods | 37 | 97.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.63% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
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 are no PNG files in this plugin