84% marketofroms

Code Review | Marketo Forms

WordPress plugin Marketo Forms scored84%from 54 tests.

About plugin

  • Plugin page: marketofroms
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.1
  • WordPress version: 6.3.1
  • First release: Apr 7, 2015
  • Latest release: Apr 7, 2015
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: vitalik1921 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,050 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.35 ▲3.40
Dashboard /wp-admin3.32 ▲0.0249.64 ▼6.02
Posts /wp-admin/edit.php3.43 ▲0.0850.95 ▲1.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.64 ▼14.66
Media Library /wp-admin/upload.php3.24 ▲0.0138.09 ▲2.68
Marketo Forms /wp-admin/options-general.php?page=mf_options3.2133.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,148 ▲38714.13 ▼0.4520.74 ▲18.8836.85 ▼10.33
Dashboard /wp-admin2,203 ▲285.51 ▼0.3297.78 ▼23.9742.00 ▼0.01
Posts /wp-admin/edit.php2,108 ▲52.02 ▼0.0140.00 ▲2.7636.21 ▲0.55
Add New Post /wp-admin/post-new.php1,535 ▲923.08 ▼0.08626.18 ▼86.1566.54 ▲14.13
Media Library /wp-admin/upload.php1,405 ▲114.20 ▼0.0799.78 ▼10.8339.22 ▼9.43
Marketo Forms /wp-admin/options-general.php?page=mf_options8102.0125.9225.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

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 === )
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP1099157293
CSS2424246
JavaScript26234

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 code0.14
Average class complexity2.44
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.39
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes9
▷ Abstract classes444.44%
▷ Concrete classes555.56%
▷ Final classes00.00%
Methods38
▷ Static methods923.68%
▷ Public methods3797.37%
▷ Protected methods00.00%
▷ Private methods12.63%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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