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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.37 ▼1.09 | 6.57 ▼34.51 |
Dashboard /wp-admin | 2.40 ▼0.95 | 7.14 ▼61.94 |
Posts /wp-admin/edit.php | 2.40 ▼0.96 | 6.36 ▼44.20 |
Add New Post /wp-admin/post-new.php | 2.40 ▼3.49 | 7.27 ▼93.28 |
Media Library /wp-admin/upload.php | 2.40 ▼0.83 | 8.07 ▼27.26 |
FirstForm /wp-admin/admin.php?page=firstform | 2.40 | 7.03 |
shortcode /wp-admin/admin.php?page=shortcode | 2.40 | 7.17 |
inquiry /wp-admin/admin.php?page=inquiry | 2.40 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.42 ▲0.22 | 1.68 ▲0.10 | 43.77 ▲1.64 |
Dashboard /wp-admin | 2,222 ▲45 | 5.67 ▼0.03 | 84.82 ▼13.76 | 41.78 ▼0.16 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.02 ▲0.03 | 39.19 ▲1.02 | 35.95 ▲3.71 |
Add New Post /wp-admin/post-new.php | 1,549 ▲12 | 22.12 ▲3.93 | 667.26 ▲17.55 | 49.64 ▼16.59 |
Media Library /wp-admin/upload.php | 1,424 ▲21 | 4.26 ▲0.07 | 101.76 ▼1.56 | 45.58 ▼0.76 |
FirstForm /wp-admin/admin.php?page=firstform | 971 | 2.00 | 22.72 | 27.09 |
shortcode /wp-admin/admin.php?page=shortcode | 1,028 | 2.07 | 29.27 | 26.08 |
inquiry /wp-admin/admin.php?page=inquiry | 846 | 2.03 | 24.13 | 25.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
- > PHP Notice
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 180 | 10 | 696 |
PO File | 1 | 68 | 70 | 150 |
JavaScript | 1 | 13 | 0 | 103 |
JSON | 2 | 0 | 0 | 34 |
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 code | 0.47 |
Average class complexity | 163.00 |
▷ Minimum class complexity | 163.00 |
▷ Maximum class complexity | 163.00 |
Average method complexity | 8.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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