79% wp-max-submit-protect

Code Review | WP Max Submit Protect

WordPress plugin WP Max Submit Protect scored79%from 54 tests.

About plugin

  • Plugin page: wp-max-submit-pro...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.2.3
  • WordPress version: 6.3.1
  • First release: Jan 11, 2014
  • Latest release: Jul 30, 2015
  • Number of updates: 18
  • Update frequency: every 31.4 days
  • Top authors: judgej (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

700+ active /12,773 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.07ms] Passed 4 tests

This is a short check of server-side resources used by WP Max Submit Protect
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.27 ▼12.41
Dashboard /wp-admin3.33 ▲0.0253.21 ▼2.01
Posts /wp-admin/edit.php3.38 ▲0.0257.31 ▲6.74
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.86 ▼7.64
Media Library /wp-admin/upload.php3.25 ▲0.0240.75 ▲1.77

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Max Submit Protect
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.36 ▲0.001.94 ▼0.0144.84 ▲1.63
Dashboard /wp-admin2,199 ▲255.64 ▲0.0694.20 ▲1.6941.14 ▼2.27
Posts /wp-admin/edit.php2,107 ▲42.00 ▼0.0042.08 ▲1.1636.80 ▼2.74
Add New Post /wp-admin/post-new.php1,532 ▲623.10 ▼0.10690.36 ▼9.8056.28 ▼2.70
Media Library /wp-admin/upload.php1,401 ▼24.14 ▲0.04111.96 ▲0.9444.31 ▲2.67

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-max-submit-protect/js/jquery-maxsubmit/index.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-max-submit-protect/wp-max-submit-protect.php:67

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: forms, data-integrity, woocommerce

wp-max-submit-protect/wp-max-submit-protect.php Passed 13 tests

Analyzing the main PHP file in "WP Max Submit Protect" version 1.1.2
129 characters long description:
Protect admin forms from being submitted with too many POST parameters, e.g. a WooCommerce variable product with many variations.

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
Good job! No executable or dangerous file extensions detected441 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP25599204
Markdown3330102
JavaScript235108100
JSON10035

PHP code Passed 2 tests

Analyzing 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.37
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.67
▷ Minimum method complexity2.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
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 were not PNG files found in your plugin