Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▲0.03ms] Passed 4 tests
A check of server-side resources used by Google Analytics Dashboard Widget by Analytify
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.25 ▼2.53 |
Dashboard /wp-admin | 3.36 ▲0.06 | 49.41 ▲0.40 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 45.10 ▲2.93 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 83.80 ▼0.69 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.94 ▲4.91 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Google Analytics Dashboard Widget by Analytify
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲166 | 13.73 ▼0.68 | 4.70 ▲2.62 | 44.79 ▲2.14 |
Dashboard /wp-admin | 2,295 ▲103 | 4.92 ▼0.96 | 111.43 ▼12.36 | 75.97 ▲34.22 |
Posts /wp-admin/edit.php | 2,136 ▲44 | 1.98 ▼0.06 | 35.68 ▼0.82 | 34.19 ▼0.80 |
Add New Post /wp-admin/post-new.php | 1,716 ▲197 | 22.44 ▼0.72 | 680.57 ▲22.18 | 51.53 ▼6.15 |
Media Library /wp-admin/upload.php | 1,433 ▲51 | 4.19 ▼0.03 | 107.93 ▲12.01 | 65.07 ▲24.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to a member function get_option() on null in wp-content/plugins/analytify-analytics-dashboard-widget/classes/analytify-widget-addon.php:114
- > PHP Notice
Trying to get property 'settings' of non-object in wp-content/plugins/analytify-analytics-dashboard-widget/classes/analytify-widget-addon.php on line 114
- > PHP Notice
Undefined index: WP_ANALYTIFY in wp-content/plugins/analytify-analytics-dashboard-widget/classes/analytify-widget-addon.php on line 86
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
analytify-analytics-dashboard-widget/wp-analytify-dashboard.php 85% from 13 tests
"Google Analytics Dashboard Widget by Analytify" version 5.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("analytify-analytics-dashboard-widget.php" instead of "wp-analytify-dashboard.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,886 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 253 | 378 | 907 |
PO File | 5 | 200 | 292 | 413 |
CSS | 1 | 60 | 16 | 337 |
JavaScript | 2 | 43 | 27 | 181 |
SVG | 1 | 0 | 1 | 48 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 4 | 12.90% |
▷ Public methods | 11 | 35.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 64.52% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/analytify-logo-135x24.png | 3.11KB | 2.23KB | ▼ 28.21% |
assets/images/waves.png | 32.83KB | 10.56KB | ▼ 67.84% |