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.03MB] [CPU: ▼1.24ms] Passed 4 tests
Analyzing server-side resources used by Clicky Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.17 ▼1.45 |
Dashboard /wp-admin | 3.34 ▼0.00 | 48.42 ▼17.50 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 52.14 ▲5.63 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 94.26 ▲10.34 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.54 ▲8.37 |
Setup /wp-admin/admin.php?page=cawp_setup | 3.26 | 35.05 |
Debug /wp-admin/admin.php?page=cawp_errors_debugging | 3.23 | 37.44 |
Settings /wp-admin/admin.php?page=cawp_settings | 3.23 | 33.38 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 56 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
cawp_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Clicky Analytics
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲146 | 15.41 ▲1.09 | 5.57 ▲3.92 | 40.32 ▼3.47 |
Dashboard /wp-admin | 2,323 ▲149 | 7.31 ▲1.73 | 127.06 ▲29.56 | 41.01 ▲0.98 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.00 ▲0.03 | 39.62 ▲2.67 | 36.88 ▲6.09 |
Add New Post /wp-admin/post-new.php | 1,568 ▲41 | 23.47 ▲0.18 | 617.05 ▲29.88 | 49.85 ▲4.25 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.19 ▲0.01 | 97.44 ▼9.00 | 43.57 ▲0.67 |
Setup /wp-admin/admin.php?page=cawp_setup | 1,470 | 8.23 | 254.87 | 69.16 |
Debug /wp-admin/admin.php?page=cawp_errors_debugging | 1,359 | 7.73 | 203.15 | 70.69 |
Settings /wp-admin/admin.php?page=cawp_settings | 1,656 | 7.73 | 163.07 | 43.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Almost there! Just 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 _e() in wp-content/plugins/clicky-analytics/admin/views/settings-sidebar.php:9
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Please describe screenshot #41 in clicky-analytics/assets to your readme.txt
clicky-analytics/clicky_analytics.php 92% from 13 tests
The main PHP file in "Clicky Analytics" ver. 2.0.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("clicky-analytics.php" instead of "clicky_analytics.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin5,845 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 307 | 640 | 2,340 |
JavaScript | 13 | 537 | 266 | 2,213 |
CSS | 12 | 221 | 40 | 1,292 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 22.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 5.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 12 | 75.00% |
Methods | 77 | |
▷ Static methods | 27 | 35.06% |
▷ Public methods | 62 | 80.52% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 19.48% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
10 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/clicky.png | 2.51KB | 1.79KB | ▼ 28.76% |
admin/images/star.png | 1.47KB | 1.39KB | ▼ 5.31% |
admin/images/seiwp-icon.png | 0.34KB | 0.27KB | ▼ 19.08% |
admin/images/wp.png | 3.21KB | 1.72KB | ▼ 46.50% |
admin/images/help.png | 1.99KB | 1.69KB | ▼ 15.20% |