10% firstform

Code Review | FirstForm

WordPress plugin FirstForm scored10%from 54 tests.

About plugin

  • Plugin page: firstform
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 16, 2015
  • Latest release: Jun 16, 2015
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: fnotes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /666 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin did not install without errors
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.62MB] [CPU: ▼58.48ms] Passed 4 tests

An overview of server-side resources used by FirstForm
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.37 ▼1.096.57 ▼34.51
Dashboard /wp-admin2.40 ▼0.957.14 ▼61.94
Posts /wp-admin/edit.php2.40 ▼0.966.36 ▼44.20
Add New Post /wp-admin/post-new.php2.40 ▼3.497.27 ▼93.28
Media Library /wp-admin/upload.php2.40 ▼0.838.07 ▼27.26
FirstForm /wp-admin/admin.php?page=firstform2.407.03
shortcode /wp-admin/admin.php?page=shortcode2.407.17
inquiry /wp-admin/admin.php?page=inquiry2.406.03

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: 1 new table, 7 new options
New tables
wp_firstform
New WordPress options
can_compress_scripts
widget_recent-posts
firstform
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for FirstForm
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.42 ▲0.221.68 ▲0.1043.77 ▲1.64
Dashboard /wp-admin2,222 ▲455.67 ▼0.0384.82 ▼13.7641.78 ▼0.16
Posts /wp-admin/edit.php2,127 ▲272.02 ▲0.0339.19 ▲1.0235.95 ▲3.71
Add New Post /wp-admin/post-new.php1,549 ▲1222.12 ▲3.93667.26 ▲17.5549.64 ▼16.59
Media Library /wp-admin/upload.php1,424 ▲214.26 ▲0.07101.76 ▼1.5645.58 ▼0.76
FirstForm /wp-admin/admin.php?page=firstform9712.0022.7227.09
shortcode /wp-admin/admin.php?page=shortcode1,0282.0729.2726.08
inquiry /wp-admin/admin.php?page=inquiry8462.0324.1325.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_firstform
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • firstform
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=inquiry
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=inquiry
    • > User deprecated in wp-includes/functions.php+5453
    Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
  • 27 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=inquiry
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/admin.php?page=inquiry
    • > Notice in wp-content/plugins/firstform/firstform.php+772
    Undefined index: paged

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/firstform/firstform.php on line 26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/firstform/firstform.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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: contact, form, inquiry

firstform/firstform.php Passed 13 tests

The principal PHP file in "FirstForm" v. 1.0 is loaded by WordPress automatically on each request
11 characters long description:
inquiryForm

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin983 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP118010696
PO File16870150
JavaScript1130103
JSON20034

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity163.00
▷ Minimum class complexity163.00
▷ Maximum class complexity163.00
Average method complexity8.04
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.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 Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin