93% forms-by-systemo

Code Review | Forms by Systemo

WordPress plugin Forms by Systemo scored 93% from 54 tests.

About plugin

  • Plugin page: forms-by-systemo
  • Plugin version: 20150825
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.3.0
  • WordPress version: 5.8.1
  • First release: Jun 13, 2015
  • Latest release: Aug 26, 2015
  • Number of updates: 19
  • Update frequency: every 3.9 days
  • Top authors: casepress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 925 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼142.31ms] Passed 4 tests

Server-side resources used by Forms by Systemo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.96 ▲0.1342.48 ▲6.23
Dashboard /wp-admin3.19 ▲0.1451.71 ▲4.49
Posts /wp-admin/edit.php3.30 ▲0.1950.92 ▼1.50
Add New Post /wp-admin/post-new.php5.55 ▲0.1298.63 ▼574.93
Media Library /wp-admin/upload.php3.13 ▲0.1339.87 ▲2.69
Form templates /wp-admin/edit.php?post_type=form_tmpl_s3.1737.72
Add message /wp-admin/post-new.php?post_type=message_cp3.3253.22
All messages /wp-admin/edit.php?post_type=message_cp3.1739.25

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Forms by Systemo: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,738 ▲16615.87 ▲0.2411.04 ▲0.5652.12 ▼9.56
Dashboard /wp-admin3,003 ▲695.93 ▼0.03150.58 ▼3.82129.39 ▲10.04
Posts /wp-admin/edit.php2,775 ▲362.72 ▲0.0176.11 ▼1.3791.75 ▼2.47
Add New Post /wp-admin/post-new.php1,706 ▲2318.77 ▲2.52419.05 ▼29.08119.16 ▲0.86
Media Library /wp-admin/upload.php1,843 ▲365.02 ▲0.02170.47 ▲9.47129.07 ▲7.11
Form templates /wp-admin/edit.php?post_type=form_tmpl_s1,4332.6273.9680.37
Add message /wp-admin/post-new.php?post_type=message_cp3,4439.00259.69173.27
All messages /wp-admin/edit.php?post_type=message_cp1,4822.6467.6675.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/forms-by-systemo/includes/spam_protect.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/forms-by-systemo/includes/shortcodes/input-cp.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_next_scheduled() in wp-content/plugins/forms-by-systemo/includes/emailer.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/forms-by-systemo/index.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/forms-by-systemo/includes/shortcodes/form-s.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/forms-by-systemo/includes/shortcodes/form-cp.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/forms-by-systemo/includes/add_message_to_post.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/forms-by-systemo/includes/shortcodes/textarea-cp.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/forms-by-systemo/includes/shortcodes/form-s.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 86% 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
Attributes that need to be fixed:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

forms-by-systemo/index.php 77% from 13 tests

The primary PHP file in "Forms by Systemo" version 20150825 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("forms-by-systemo.php" instead of "index.php")
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "20150825")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected655 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP99961514
PO File14040110
Markdown119031

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/icon-128x128.png7.30KB3.18KB▼ 56.43%
includes/images/icon-256x256.png15.28KB5.92KB▼ 61.23%