Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼141.61ms] Passed 4 tests
A check of server-side resources used by First response
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 41.28 ▲19.52 |
Dashboard /wp-admin | 3.09 ▲0.04 | 41.89 ▼0.72 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 40.17 ▼3.14 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 85.87 ▼563.29 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 34.70 ▲0.70 |
Add New /wp-admin/post-new.php?post_type=ems_call | 3.15 | 50.55 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=ems_call | 3.03 | 28.33 |
Load Calls /wp-admin/edit.php?post_type=ems_call&page=load-calls | 3.19 | 29.42 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=ems_call | 3.03 | 34.17 |
All Calls /wp-admin/edit.php?post_type=ems_call | 3.08 | 36.91 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 2 new options
New WordPress options |
---|
category_children |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
Checking browser requirements for First response
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,757 ▲161 | 15.85 ▲0.00 | 9.52 ▲0.36 | 48.67 ▲2.00 |
Dashboard /wp-admin | 3,017 ▲86 | 5.89 ▼0.04 | 139.60 ▼7.69 | 116.04 ▲5.08 |
Posts /wp-admin/edit.php | 2,789 ▲50 | 2.70 ▲0.00 | 63.56 ▼7.32 | 85.88 ▼4.06 |
Add New Post /wp-admin/post-new.php | 3,721 ▲2,051 | 15.29 ▼3.83 | 438.18 ▲63.47 | 108.71 ▲4.10 |
Media Library /wp-admin/upload.php | 1,857 ▲47 | 5.01 ▼0.02 | 143.91 ▼18.94 | 114.40 ▼13.76 |
Add New /wp-admin/post-new.php?post_type=ems_call | 3,221 | 8.99 | 235.19 | 136.84 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=ems_call | 1,888 | 2.49 | 57.96 | 85.19 |
Load Calls /wp-admin/edit.php?post_type=ems_call&page=load-calls | 932 | 1.85 | 33.05 | 61.08 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=ems_call | 1,975 | 2.49 | 58.75 | 93.55 |
All Calls /wp-admin/edit.php?post_type=ems_call | 1,513 | 2.63 | 60.41 | 79.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 2 options in the database
- recovery_mode_email_last_sent
- category_children
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ems_call&page=load-calls
- > Notice in wp-content/plugins/first-response/Emergency_Call.php+61
Undefined offset: 0
- > GET request to /wp-admin/edit.php?post_type=ems_call&page=load-calls
- > Notice in wp-content/plugins/first-response/Emergency_Call.php+58
Trying to get property 'post_date' of non-object
- > GET request to /wp-admin/edit.php?post_type=ems_call&page=load-calls
- > Notice in wp-content/plugins/first-response/Emergency_Call.php+61
Trying to get property 'ID' of non-object
- > GET request to /wp-admin/edit.php?post_type=ems_call&page=load-calls
- > Error in wp-content/plugins/first-response/Emergency_Call.php+64
Uncaught Error: Call to undefined function imap_open() in wp-content/plugins/first-response/Emergency_Call.php:64
Stack trace:
#0 wp-content/plugins/first-response/first-response.php(74): Emergency_Call::find_recent_calls()
#1 wp-includes/class-wp-hook.php(303): ems_load_calls_page()
#2 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(470): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/edit.php(10): require_once('/var/www/wordpr...')
#6 {main}
thrown
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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/first-response/first-response.php
- > /wp-content/plugins/first-response/Emergency_Call.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== first-response ===
) - Tags: Please delete some tags, you are using 13 tag instead of maximum 10
first-response/first-response.php Passed 13 tests
The primary PHP file in "First response" version 1.1 is used by WordPress to initiate all plugin functionality
84 characters long description:
Adds a "911 calls" post type for listing the calls your department is dispatched for
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin419 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 65 | 63 | 419 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.87 |
Average class complexity | 147.00 |
▷ Minimum class complexity | 147.00 |
▷ Maximum class complexity | 147.00 |
Average method complexity | 10.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.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 | 16 | |
▷ Static methods | 2 | 12.50% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin