Benchmarks
Plugin footprint 58% 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 cannot be installed
- > Warning in wp-content/plugins/vcx3-heatmap/Vcx3_Plugin.php+29
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▲0.10MB] [CPU: ▼10.81ms] Passed 4 tests
Analyzing server-side resources used by vcx3-Heatmap
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.13 ▼8.21 |
Dashboard /wp-admin | 3.41 ▲0.10 | 46.67 ▼5.79 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 46.92 ▼3.51 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 83.55 ▼25.71 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.89 ▲2.71 |
vcx3-heatmap /wp-admin/plugins.php?page=Vcx3_PluginSettings | 3.29 | 31.18 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 9 new options
New WordPress options |
---|
Vcx3_Plugin__version |
Vcx3_Plugin_my_js_snippet_email |
Vcx3_Plugin__installed |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for vcx3-Heatmap
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.31 ▼1.03 | 1.71 ▼0.60 | 41.59 ▼9.20 |
Dashboard /wp-admin | 2,210 ▲22 | 5.79 ▲0.89 | 97.75 ▼16.35 | 35.68 ▼9.69 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▼0.03 | 34.31 ▼3.57 | 30.28 ▼0.74 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 18.26 ▲0.08 | 610.69 ▼0.00 | 51.36 ▲4.27 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.23 ▼0.01 | 97.00 ▼5.51 | 42.71 ▲1.81 |
vcx3-heatmap /wp-admin/plugins.php?page=Vcx3_PluginSettings | 831 | 2.05 | 24.58 | 29.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- Vcx3_Plugin__version
- can_compress_scripts
- Vcx3_Plugin_my_js_snippet_email
- theysaidso_admin_options
- widget_recent-comments
- Vcx3_Plugin__installed
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vcx3-heatmap/vcx3.php:77
- > 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 90% 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
Attributes that require attention:
- Screenshots: Please describe screenshot #4 in vcx3-heatmap/assets to your readme.txt
vcx3-heatmap/vcx3.php 85% from 13 tests
"vcx3-Heatmap" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: The principal plugin file should be the same as the plugin slug ("vcx3-heatmap.php" instead of "vcx3.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected722 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 166 | 514 | 522 |
XML | 4 | 0 | 0 | 200 |
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.32 |
Average class complexity | 9.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 43 | 60.56% |
▷ Protected methods | 28 | 39.44% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin