Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.83MB] [CPU: ▼31.66ms] Passed 4 tests
A check of server-side resources used by WP Statistics and Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 43.39 ▲1.16 |
Dashboard /wp-admin | 3.11 ▼0.19 | 26.06 ▼30.85 |
Posts /wp-admin/edit.php | 3.12 ▼0.24 | 29.41 ▼20.56 |
Add New Post /wp-admin/post-new.php | 3.11 ▼2.77 | 28.72 ▼66.44 |
Media Library /wp-admin/upload.php | 3.11 ▼0.11 | 25.56 ▼8.78 |
WP Statistics and Analytics /wp-admin/options-general.php?page=klick_sa | 3.12 | 25.37 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Statistics and Analytics
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲151 | 13.85 ▼0.52 | 9.05 ▲7.19 | 41.94 ▼2.01 |
Dashboard /wp-admin | 2,219 ▲28 | 4.89 ▼1.01 | 99.31 ▼7.44 | 42.55 ▲5.08 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.04 ▲0.02 | 39.65 ▲3.57 | 36.69 ▲2.17 |
Add New Post /wp-admin/post-new.php | 1,523 ▼10 | 17.61 ▼5.70 | 676.02 ▼23.52 | 60.87 ▲2.44 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.28 ▲0.04 | 100.79 ▼7.32 | 49.23 ▲2.36 |
WP Statistics and Analytics /wp-admin/options-general.php?page=klick_sa | 1,485 | 2.03 | 24.63 | 32.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=klick_sa
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 14× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/wp-statistics-and-analytics/wp-statistics-and-analytics.php
- > /wp-content/plugins/wp-statistics-and-analytics/includes/class-klick-sa-logger.php
- > /wp-content/plugins/wp-statistics-and-analytics/includes/class-klick-sa-abstract-logger.php
- > /wp-content/plugins/wp-statistics-and-analytics/templates/notices-templates/main-dashboard-notices.php
- > /wp-content/plugins/wp-statistics-and-analytics/templates/klick-sa-tabs-header.php
- > /wp-content/plugins/wp-statistics-and-analytics/includes/class-klick-sa-notifier.php
- > /wp-content/plugins/wp-statistics-and-analytics/includes/class-klick-sa-commands.php
- > /wp-content/plugins/wp-statistics-and-analytics/templates/klick-sa-tab-change-log.php
- > /wp-content/plugins/wp-statistics-and-analytics/includes/class-klick-sa-email-logger.php
- > /wp-content/plugins/wp-statistics-and-analytics/includes/class-klick-sa-options.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_count_posts() in wp-content/plugins/wp-statistics-and-analytics/templates/klick-sa-tab-information.php:13
- > PHP Warning
Use of undefined constant KLICK_SA_PLUGIN_URL - assumed 'KLICK_SA_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-statistics-and-analytics/templates/klick-sa-tab-our-other-plugins.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-statistics-and-analytics/templates/klick-sa-tab-our-other-plugins.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=klick_sa
- > Network (severe)
wp-content/plugins/wp-statistics-and-analytics//images/our-more-plugins/APV.svg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=klick_sa
- > Network (severe)
wp-content/plugins/wp-statistics-and-analytics//images/our-more-plugins/ATS.svg - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% 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
6 plugin tags: users, statics and analysis, post, short-code, page...
wp-statistics-and-analytics/wp-statistics-and-analytics.php 92% from 13 tests
The main PHP file in "WP Statistics and Analytics" ver. 0.0.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,777 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 296 | 485 | 824 |
SVG | 11 | 0 | 11 | 521 |
CSS | 6 | 15 | 11 | 272 |
JavaScript | 4 | 24 | 62 | 113 |
Markdown | 1 | 27 | 0 | 47 |
PHP code Passed 2 tests
A short review 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.34 |
Average class complexity | 8.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 2 | 16.67% |
▷ Concrete classes | 10 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 5 | 6.94% |
▷ Public methods | 71 | 98.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.39% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
6 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/notices/ual_notice_icon3.png | 30.17KB | 6.04KB | ▼ 79.98% |
images/small_icon.png | 18.12KB | 0.45KB | ▼ 97.52% |
images/notices/ual_notice_icon2.png | 9.63KB | 4.69KB | ▼ 51.23% |
images/sa-banner.png | 65.28KB | 23.32KB | ▼ 64.28% |
images/klick-on-it.png | 6.51KB | 4.02KB | ▼ 38.23% |