Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.49MB] [CPU: ▼3.00ms] Passed 4 tests
This is a short check of server-side resources used by WP Smart Analytics
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.17 ▲0.70 | 49.45 ▲13.32 |
Dashboard /wp-admin | 3.83 ▲0.49 | 47.01 ▼12.28 |
Posts /wp-admin/edit.php | 3.88 ▲0.53 | 50.93 ▲4.76 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.47 | 84.21 ▼9.66 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 39.52 ▲5.17 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: 1 new table, 13 new options
New tables |
---|
wp_smart_analytics_visitor_log |
New WordPress options |
---|
MAX_DATABASE_RECORDS |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
SHA_SECRET_IV |
SHA_SECRET_KEY |
MAX_CACHE_RECORDS |
SESSION_DURATION |
widget_theysaidso_widget |
VISITOR_COUNT |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Smart Analytics
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.40 ▼0.15 | 1.72 ▲0.06 | 36.50 ▼2.38 |
Dashboard /wp-admin | 2,204 ▲24 | 5.58 ▼0.02 | 80.47 ▼8.42 | 36.04 ▼2.63 |
Posts /wp-admin/edit.php | 2,112 ▲15 | 2.01 ▼0.03 | 38.65 ▲2.04 | 35.90 ▼1.25 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 22.18 ▼1.36 | 668.73 ▲1.08 | 63.50 ▲4.19 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.21 ▼0.02 | 104.12 ▲6.24 | 43.75 ▼0.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 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 wp_die() in wp-content/plugins/wp-smart-analytics/uninstall.php:12
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: security, ban, logs, statistics, behavior...
wp-smart-analytics/class-wpsa.php 85% from 13 tests
"WP Smart Analytics" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 311 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-smart-analytics.php" instead of "class-wpsa.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
Good job! No executable or dangerous file extensions detected3,978 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 425 | 483 | 2,287 |
CSS | 6 | 126 | 60 | 1,346 |
JavaScript | 1 | 39 | 4 | 345 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 357.00 |
▷ Minimum class complexity | 357.00 |
▷ Maximum class complexity | 357.00 |
Average method complexity | 6.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.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 | 63 | |
▷ Static methods | 1 | 1.59% |
▷ Public methods | 62 | 98.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.59% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 24 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 24 | 100.00% |
▷ Public constants | 24 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 6.08KB | 2.68KB | ▼ 55.93% |
assets/css/images/ui-icons_469bdd_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |
assets/css/images/ui-bg_inset-hard_100_f5f8f9_1x100.png | 0.38KB | 0.13KB | ▼ 66.24% |
assets/css/images/ui-bg_glass_75_d0e5f5_1x400.png | 0.38KB | 0.16KB | ▼ 59.39% |
assets/css/images/ui-icons_d8e7f3_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |