Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.44ms] Passed 4 tests
Analyzing server-side resources used by Contact Form 7: ServiceNow Incidents integration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.33 ▼0.82 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.90 ▼2.24 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.70 ▼1.25 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.47 ▼15.89 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.19 ▼2.37 |
Contact Form 7: ServiceNow Incidents /wp-admin/options-general.php?page=cf7_servicenow_incidents_options | 3.20 | 33.90 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Contact Form 7: ServiceNow Incidents integration
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲117 | 13.79 ▼0.73 | 8.65 ▲6.85 | 41.60 ▼0.07 |
Dashboard /wp-admin | 2,202 ▲25 | 5.54 ▼0.03 | 89.45 ▼1.94 | 39.42 ▼5.31 |
Posts /wp-admin/edit.php | 2,110 ▲7 | 1.96 ▼0.07 | 35.44 ▼2.43 | 37.18 ▼1.92 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 22.98 ▼0.76 | 672.93 ▲37.43 | 59.49 ▼0.08 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.22 ▲0.01 | 103.43 ▲2.64 | 46.80 ▼0.29 |
Contact Form 7: ServiceNow Incidents /wp-admin/options-general.php?page=cf7_servicenow_incidents_options | 943 | 1.99 | 24.04 | 31.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-servicenow-incidents/admin-menu.php:149
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cf7-servicenow-incidents/cf7-servicenow-incidents.php:19
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
cf7-servicenow-incidents/cf7-servicenow-incidents.php Passed 13 tests
The principal PHP file in "Contact Form 7: ServiceNow Incidents integration" v. 0.0.1 is loaded by WordPress automatically on each request
63 characters long description:
ServiceNow incident report integration for Contact Form 7 forms
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin280 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 28 | 66 | 280 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin