Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/smarter-analytics/smarter-analytics.php+27
Undefined index: reset
Server metrics [RAM: ▼1.90MB] [CPU: ▼51.10ms] Passed 4 tests
A check of server-side resources used by Smarter Analytics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.07 ▲0.67 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.64 ▼42.91 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.41 ▼37.48 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 4.91 ▼92.40 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.11 ▼31.61 |
Smarter Analytics /wp-admin/options-general.php?page=smarter-analytics-admin | 2.05 | 5.11 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Smarter Analytics
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 14.45 ▲0.03 | 1.78 ▲0.08 | 45.63 ▲1.51 |
Dashboard /wp-admin | 2,216 ▲27 | 4.85 ▼0.13 | 111.16 ▲3.30 | 43.05 ▲1.95 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.05 ▲0.01 | 35.00 ▼2.13 | 31.54 ▲0.34 |
Add New Post /wp-admin/post-new.php | 6,497 ▲4,964 | 23.13 ▲0.13 | 824.85 ▲134.63 | 58.92 ▼1.28 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.15 ▼0.21 | 92.09 ▼14.18 | 41.95 ▼2.56 |
Smarter Analytics /wp-admin/options-general.php?page=smarter-analytics-admin | 1,057 | 1.84 | 25.21 | 34.73 |
Uninstaller [IO: ▲0.03MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/smarter-analytics/smarter-analytics.php+27
Undefined index: reset
- The plugin did not uninstall successfully, leaving 7 files (0.03MB) in the plugin directory
- (new file) uninstall.php
- (new file) smarter-analytics-add-metabox.php
- (new file) smarter-analytics-posts-view-actions.php
- (new file) readme.txt
- (new file) smarter-analytics-admin.php
- (new file) smarter-analytics.php
- (new file) smarter-analytics.js
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- recovery_mode_email_last_sent
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=smarter-analytics-admin
- > Notice in wp-content/plugins/smarter-analytics/smarter-analytics.php+27
Undefined index: reset
- > GET request to /wp-admin/options-general.php?page=smarter-analytics-admin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=smarter-analytics-admin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 12 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=smarter-analytics-admin
- > Notice in wp-content/plugins/smarter-analytics/smarter-analytics-admin.php+160
Trying to access array offset on value of type bool
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 take a closer look at the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smarter-analytics/smarter-analytics-posts-view-actions.php:2
- > PHP Parse error
syntax error, unexpected '&&' (T_BOOLEAN_AND) in wp-content/plugins/smarter-analytics/uninstall.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smarter-analytics/smarter-analytics-add-metabox.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smarter-analytics/smarter-analytics-admin.php:313
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smarter-analytics/smarter-analytics-posts-view-actions.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were 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
3 plugin tags: analytics, smarter analytics, google analytics
smarter-analytics/smarter-analytics.php 92% from 13 tests
Analyzing the main PHP file in "Smarter Analytics" version 2.0
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 231 characters long)
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
Everything looks great! No dangerous files found in this plugin609 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 102 | 59 | 455 |
JavaScript | 1 | 40 | 0 | 154 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
Functions | 8 | |
▷ Named functions | 8 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin