Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.43ms] Passed 4 tests
Analyzing server-side resources used by Flying Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 37.80 ▼1.25 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.85 ▼4.77 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 42.22 ▼5.30 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 79.72 ▼18.38 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.31 ▼0.21 |
Flying Analytics /wp-admin/options-general.php?page=flying-analytics | 3.23 | 29.36 |
Server storage [IO: ▲1.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 424 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
flying_analytics_disable_on_login |
FLYING_ANALYTICS_VERSION |
flying_analytics_method |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Flying Analytics: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 14.35 ▼0.05 | 1.75 ▲0.13 | 39.78 ▼0.07 |
Dashboard /wp-admin | 2,196 ▲16 | 5.54 ▼0.10 | 86.12 ▲0.83 | 40.04 ▼1.28 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.98 ▼0.01 | 36.78 ▼2.59 | 32.49 ▼1.33 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.20 ▼0.12 | 678.32 ▲22.99 | 55.01 ▼5.19 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.20 ▲0.01 | 109.25 ▲4.57 | 46.54 ▲4.50 |
Flying Analytics /wp-admin/options-general.php?page=flying-analytics | 885 | 2.00 | 24.11 | 26.02 |
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
- This plugin does not fully uninstall, leaving 9 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- flying_analytics_method
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- flying_analytics_disable_on_login
- FLYING_ANALYTICS_VERSION
Smoke tests 25% 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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=flying-analytics
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/flying-analytics/vendor/meta-box/meta-box/inc/templates/image-advanced.php
- > /wp-content/plugins/flying-analytics/vendor/meta-box/meta-box/inc/templates/video.php
- > /wp-content/plugins/flying-analytics/vendor/meta-box/meta-box/inc/templates/upload.php
- > /wp-content/plugins/flying-analytics/vendor/meta-box/meta-box/inc/templates/audio.php
- > /wp-content/plugins/flying-analytics/vendor/meta-box/meta-box/inc/templates/media.php
- 175× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Input_Field' not found in wp-content/plugins/flying-analytics/vendor/meta-box/meta-box/inc/fields/fieldset-text.php:11
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/flying-analytics/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/flying-analytics/vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/flying-analytics/vendor/meta-box/meta-box/inc/fields/button.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_File_Field' not found in wp-content/plugins/flying-analytics/vendor/meta-box/meta-box/inc/fields/media.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Select_Advanced_Field' not found in wp-content/plugins/flying-analytics/vendor/meta-box/meta-box/inc/fields/select-tree.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Input_List_Field' not found in wp-content/plugins/flying-analytics/vendor/meta-box/meta-box/inc/fields/checkbox-list.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Multiple_Values_Field' not found in wp-content/plugins/flying-analytics/vendor/meta-box/meta-box/inc/fields/text-list.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Media_Field' not found in wp-content/plugins/flying-analytics/vendor/meta-box/meta-box/inc/fields/video.php:12
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/flying-analytics/vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: minimal analytics, self host, google analytics
flying-analytics/index.php 92% from 13 tests
Analyzing the main PHP file in "Flying Analytics" version 1.2.2
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("flying-analytics.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin15,051 lines of code in 394 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 243 | 1,921 | 4,920 | 9,524 |
CSS | 41 | 185 | 129 | 2,604 |
JavaScript | 105 | 584 | 494 | 2,526 |
JSON | 1 | 0 | 0 | 196 |
Sass | 1 | 15 | 9 | 141 |
PO File | 2 | 10 | 17 | 55 |
SVG | 1 | 0 | 0 | 5 |
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.31 |
Average class complexity | 5.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 208 | |
▷ Abstract classes | 7 | 3.37% |
▷ Concrete classes | 201 | 96.63% |
▷ Final classes | 0 | 0.00% |
Methods | 659 | |
▷ Static methods | 315 | 47.80% |
▷ Public methods | 549 | 83.31% |
▷ Protected methods | 75 | 11.38% |
▷ Private methods | 35 | 5.31% |
Functions | 37 | |
▷ Named functions | 24 | 64.86% |
▷ Anonymous functions | 13 | 35.14% |
Constants | 12 | |
▷ Global constants | 8 | 66.67% |
▷ Class constants | 4 | 33.33% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/meta-box/meta-box/img/jqueryui/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/meta-box/meta-box/img/jqueryui/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/meta-box/meta-box/img/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
vendor/meta-box/meta-box/img/jqueryui/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
vendor/meta-box/meta-box/img/jqueryui/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |