Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.58ms] Passed 4 tests
An overview of server-side resources used by MicroMetrics
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 36.91 ▼0.15 |
Dashboard /wp-admin | 3.38 ▲0.07 | 44.09 ▼3.47 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 46.26 ▼0.62 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 80.45 ▼22.08 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.73 ▲2.42 |
General /wp-admin/admin.php?page=micrometrics-general | 3.26 | 28.70 |
Eventos /wp-admin/admin.php?page=micrometrics-events | 3.26 | 30.04 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
micrometrics_es_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MicroMetrics
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.11 ▼0.52 | 2.39 ▲0.86 | 42.98 ▲2.14 |
Dashboard /wp-admin | 2,222 ▲44 | 5.58 ▼0.05 | 80.98 ▼20.52 | 37.15 ▼5.29 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.98 ▼0.02 | 33.98 ▼1.82 | 34.61 ▼0.54 |
Add New Post /wp-admin/post-new.php | 1,548 ▲13 | 23.02 ▲4.87 | 580.46 ▼36.42 | 47.43 ▼6.81 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.22 ▲0.04 | 94.63 ▼7.03 | 43.92 ▲0.97 |
General /wp-admin/admin.php?page=micrometrics-general | 974 | 2.03 | 22.66 | 27.46 |
Eventos /wp-admin/admin.php?page=micrometrics-events | 919 | 2.04 | 23.81 | 25.24 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/micrometrics/micrometrics.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== micrometrics ===
)
micrometrics/micrometrics.php Passed 13 tests
The primary PHP file in "MicroMetrics" version 1.3.2 is used by WordPress to initiate all plugin functionality
133 characters long description:
Este plugin agrega de forma fácil y rápida el código de seguimiento de MicroMetrics a tu sitio web y te permite registrar eventos.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected392 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 13 | 25 | 312 |
PO File | 1 | 28 | 33 | 80 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 9 | |
▷ Named functions | 9 | 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
2 compressed PNG files occupy 0.13MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 77.24KB | 77.09KB | 0.20% |
screenshot-2.png | 58.51KB | 56.72KB | ▼ 3.07% |