Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/wp-sensaimetrics/wp-sensaimetrics.php+21
Constant WP_DEBUG already defined
Server metrics [RAM: ▼1.93MB] [CPU: ▼52.38ms] Passed 4 tests
A check of server-side resources used by WP Sensaimetrics
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.41 | 4.99 ▼32.76 |
Dashboard /wp-admin | 2.08 ▼1.23 | 6.46 ▼45.97 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 7.20 ▼40.27 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.47 ▼90.53 |
Media Library /wp-admin/upload.php | 2.08 ▼1.16 | 6.14 ▼29.92 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Sensaimetrics
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 13.60 ▼0.78 | 1.86 ▲0.18 | 42.83 ▼8.35 |
Dashboard /wp-admin | 2,224 ▲39 | 5.84 ▲0.89 | 95.48 ▼9.07 | 79.99 ▲36.73 |
Posts /wp-admin/edit.php | 2,104 ▲12 | 1.97 ▼0.09 | 39.76 ▼0.69 | 38.02 ▲0.66 |
Add New Post /wp-admin/post-new.php | 1,539 ▼0 | 18.31 ▼5.00 | 664.14 ▲41.34 | 65.85 ▲12.88 |
Media Library /wp-admin/upload.php | 1,406 ▲15 | 4.13 ▼0.04 | 96.69 ▼3.09 | 73.12 ▲29.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/wp-sensaimetrics/wp-sensaimetrics.php+21
Constant WP_DEBUG already defined
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: sensaimetrics
wp-sensaimetrics/wp-sensaimetrics.php Passed 13 tests
The primary PHP file in "WP Sensaimetrics" version 1.2.7 is used by WordPress to initiate all plugin functionality
72 characters long description:
Sensaimetrics connector that avoids connections when logged in wp-admin.
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
Everything looks great! No dangerous files found in this plugin360 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 63 | 45 | 358 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 5.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 4 | 26.67% |
▷ Public methods | 12 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 20.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/20x20.png | 0.83KB | 0.72KB | ▼ 13.13% |