Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.95MB] [CPU: ▼39.85ms] Passed 4 tests
This is a short check of server-side resources used by Core Vitals Monitor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.34 ▼4.79 |
Dashboard /wp-admin | 3.00 ▼0.34 | 27.43 ▼38.90 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 28.23 ▼20.70 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 23.86 ▼86.78 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 24.72 ▼13.01 |
Key Metrics /wp-admin/tools.php?page=key_metrics | 3.01 | 26.75 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Core Vitals Monitor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.21 ▼0.79 | 4.92 ▲3.11 | 43.21 ▼1.84 |
Dashboard /wp-admin | 2,225 ▲25 | 4.87 ▼1.10 | 113.97 ▲14.27 | 41.86 ▼1.73 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.18 | 41.16 ▲0.36 | 37.85 ▼0.57 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 22.09 ▲4.58 | 691.81 ▲73.88 | 98.04 ▲50.33 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.25 ▼0.04 | 96.30 ▼11.91 | 44.49 ▼2.98 |
Key Metrics /wp-admin/tools.php?page=key_metrics | 2,195 | 2.16 | 39.64 | 43.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% 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
- > GET request to /wp-admin/tools.php?page=key_metrics
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/tools.php?page=key_metrics
- > Notice in wp-content/plugins/core-vitals-monitor/includes/class-key-metrics.php+150
Undefined index: message
- > GET request to /wp-admin/tools.php?page=key_metrics
- > Notice in wp-content/plugins/core-vitals-monitor/includes/class-key-metrics.php+151
Undefined index: type
- > GET request to /wp-admin/tools.php?page=key_metrics
- > Notice in wp-content/plugins/core-vitals-monitor/includes/display.php+76
Undefined variable: path
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/core-vitals-monitor/includes/header.php
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/core-vitals-monitor/includes/display.php:75
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/core-vitals-monitor/includes/config.php:110
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/core-vitals-monitor/includes/config.php on line 85
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/core-vitals-monitor/includes/config.php on line 31
- > PHP Notice
Undefined variable: sites in wp-content/plugins/core-vitals-monitor/includes/display.php on line 34
- > PHP Notice
Undefined variable: sites in wp-content/plugins/core-vitals-monitor/includes/config.php on line 31
- > PHP Notice
Undefined variable: sel_dsk in wp-content/plugins/core-vitals-monitor/includes/config.php on line 107
- > PHP Warning
array_pop() expects parameter 1 to be array, null given in wp-content/plugins/core-vitals-monitor/includes/display.php on line 33
- > PHP Notice
Undefined variable: sec_grade in wp-content/plugins/core-vitals-monitor/includes/config.php on line 85
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/core-vitals-monitor/key-metrics.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: wp, speed, security, performance, php...
core-vitals-monitor/key-metrics.php 77% from 13 tests
The main PHP file in "Core Vitals Monitor" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: Please use dashes and lowercase characters for text domains
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("core-vitals-monitor.php" instead of "key-metrics.php")
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
There were no executable files found in this plugin1,147 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 181 | 45 | 735 |
CSS | 1 | 59 | 3 | 248 |
JavaScript | 1 | 29 | 11 | 154 |
JSON | 2 | 1 | 0 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 4 | |
▷ Global constants | 4 | 100.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