Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.37ms] Passed 4 tests
An overview of server-side resources used by Web Vitals Block
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 42.95 ▼2.82 |
Dashboard /wp-admin | 3.32 ▲0.01 | 51.17 ▼0.45 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.31 ▼7.05 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.47 ▼2.69 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.14 ▼0.92 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/web-vitals-block/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Web Vitals Block
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲43 | 13.20 ▼1.21 | 5.48 ▲3.33 | 43.50 ▼9.36 |
Dashboard /wp-admin | 2,225 ▲19 | 5.80 ▲0.91 | 95.73 ▼20.36 | 35.86 ▼8.16 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.02 ▼0.00 | 35.91 ▼3.64 | 35.44 ▲3.24 |
Add New Post /wp-admin/post-new.php | 6,370 ▲4,821 | 27.59 ▲4.49 | 936.11 ▲231.87 | 40.11 ▼21.45 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.23 ▼0.02 | 99.72 ▼7.18 | 43.43 ▼0.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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 items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/web-vitals-block/web-vitals-block.php:62
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: block, web vitals, core web vitals
web-vitals-block/web-vitals-block.php Passed 13 tests
The main PHP file in "Web Vitals Block" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
19 characters long description:
A Web Vitals block.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected17,534 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 17,291 |
JavaScript | 9 | 21 | 88 | 178 |
PHP | 2 | 6 | 17 | 40 |
Sass | 2 | 3 | 0 | 23 |
CSS | 2 | 2 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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