78% theme-my-ontraport-smartform

Code Review | Theme My Ontraport Smartform

WordPress plugin Theme My Ontraport Smartform scored78%from 54 tests.

About plugin

  • Plugin page: theme-my-ontrapor...
  • Plugin version: 1.2.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.4
  • WordPress version: 6.3.1
  • First release: Jul 12, 2014
  • Latest release: May 8, 2017
  • Number of updates: 41
  • Update frequency: every 25.2 days
  • Top authors: itmooti (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,518 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.99ms] Passed 4 tests

Analyzing server-side resources used by Theme My Ontraport Smartform
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.37 ▲2.91
Dashboard /wp-admin3.35 ▲0.0146.14 ▼16.22
Posts /wp-admin/edit.php3.41 ▲0.0547.55 ▲4.36
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.12 ▼15.01
Media Library /wp-admin/upload.php3.28 ▲0.0540.40 ▲7.27
Theme My Smartforms /wp-admin/options-general.php?page=itmooti-oap-admin3.2231.52

Server storage [IO: ▲4.46MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 94 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-comments
itmooti-oap-themes_message
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
oap_custom_theme_plugin_link_license_link
widget_recent-posts
oap_custom_theme_plugin_link_support_link
can_compress_scripts
oap_custom_theme_plugin_authenticated

Browser metrics Passed 4 tests

Checking browser requirements for Theme My Ontraport Smartform
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲5313.27 ▼0.914.43 ▲2.6441.59 ▲1.33
Dashboard /wp-admin2,233 ▲484.85 ▼0.24101.11 ▼2.5538.95 ▼4.62
Posts /wp-admin/edit.php2,115 ▲232.03 ▲0.0536.73 ▼2.3236.84 ▲5.90
Add New Post /wp-admin/post-new.php1,556 ▲3722.98 ▼0.09671.02 ▲1.3253.93 ▼5.57
Media Library /wp-admin/upload.php1,415 ▲274.20 ▲0.0297.21 ▼9.5945.74 ▼0.10
Theme My Smartforms /wp-admin/options-general.php?page=itmooti-oap-admin8702.1823.1426.34

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
  • Zombie WordPress options were found after uninstall: 10 options
    • widget_recent-posts
    • oap_custom_theme_plugin_link_support_link
    • oap_custom_theme_plugin_link_license_link
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • oap_custom_theme_plugin_authenticated
    • widget_recent-comments
    • itmooti-oap-themes_message
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=itmooti-oap-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=itmooti-oap-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/theme-my-ontraport-smartform/theme-my-smartform.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: spam, comments

theme-my-ontraport-smartform/theme-my-smartform.php 92% from 13 tests

Analyzing the main PHP file in "Theme My Ontraport Smartform" version 1.2.11
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 ("theme-my-ontraport-smartform.php" instead of "theme-my-smartform.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
There were no executable files found in this plugin6,353 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
CSS13135535,068
SVG300712
JavaScript895381
PHP1710192

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
49 PNG files occupy 2.95MB with 1.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
themes/ruby/images/yellow-circle.png0.55KB0.44KB▼ 19.07%
themes/amber-2/images/5.png3.08KB0.41KB▼ 86.76%
assets/screenshot-9.png94.58KB25.39KB▼ 73.15%
themes/diamond/chosen/chosen.png1.47KB2.08KB0.00%
themes/opal/images/1.png2.87KB0.23KB▼ 92.08%