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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.75MB] [CPU: ▼1.76ms] Passed 4 tests
Analyzing server-side resources used by Frontend Analytics
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.58 ▲1.11 | 49.58 ▲8.37 |
Dashboard /wp-admin | 3.96 ▲0.65 | 51.91 ▼1.36 |
Posts /wp-admin/edit.php | 4.01 ▲0.65 | 56.25 ▲2.04 |
Add New Post /wp-admin/post-new.php | 7.15 ▲1.26 | 95.14 ▼8.96 |
Media Library /wp-admin/upload.php | 3.82 ▲0.59 | 42.60 ▲1.23 |
Frontend Analytics /wp-admin/options-general.php?page=frontend-analytics | 4.36 | 40.48 |
Server storage [IO: ▲7.58MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 288 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_frontend_analytics |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
frontend_analytics_redirected |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Frontend Analytics
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.27 ▼0.29 | 1.67 ▼0.14 | 52.41 ▲14.13 |
Dashboard /wp-admin | 2,193 ▲19 | 5.58 ▼0.02 | 87.55 ▲1.37 | 38.79 ▼0.11 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.05 | 35.01 ▼0.14 | 33.31 ▼6.11 |
Add New Post /wp-admin/post-new.php | 6,204 ▲4,678 | 21.29 ▼1.68 | 871.64 ▲200.83 | 66.91 ▲5.85 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▼0.06 | 101.48 ▼6.21 | 45.71 ▲1.28 |
Frontend Analytics /wp-admin/options-general.php?page=frontend-analytics | 880 | 1.99 | 22.07 | 27.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- widget_frontend_analytics
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- frontend_analytics_redirected
- widget_theysaidso_widget
- theysaidso_admin_options
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 185× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/frontend-analytics/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/frontend-analytics/includes/libraries/google-api-php-client/src/Google/Service/Translate.php:31
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/frontend-analytics/vendor/composer/installers/src/Composer/Installers/AglInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/frontend-analytics/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/frontend-analytics/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php:12
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/frontend-analytics/vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/frontend-analytics/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/frontend-analytics/vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/frontend-analytics/includes/libraries/google-api-php-client/src/Google/Service/Freebase.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/frontend-analytics/includes/libraries/google-api-php-client/src/Google/Service/Coordinate.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #4 (Top Countries.)
frontend-analytics/frontend-analytics.php Passed 13 tests
"Frontend Analytics" version 2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
48 characters long description:
Displays Google Analytics stats on the frontend.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected182,133 lines of code in 269 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 260 | 12,535 | 34,677 | 176,269 |
SVG | 3 | 0 | 12 | 4,842 |
PO File | 1 | 319 | 430 | 678 |
JSON | 1 | 0 | 0 | 202 |
Markdown | 2 | 32 | 0 | 139 |
JavaScript | 1 | 0 | 11 | 2 |
YAML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 1.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 512.00 |
Average method complexity | 1.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 89.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 3,131 | |
▷ Abstract classes | 7 | 0.22% |
▷ Concrete classes | 3,124 | 99.78% |
▷ Final classes | 0 | 0.00% |
Methods | 23,927 | |
▷ Static methods | 55 | 0.23% |
▷ Public methods | 23,809 | 99.51% |
▷ Protected methods | 64 | 0.27% |
▷ Private methods | 54 | 0.23% |
Functions | 81 | |
▷ Named functions | 72 | 88.89% |
▷ Anonymous functions | 9 | 11.11% |
Constants | 284 | |
▷ Global constants | 15 | 5.28% |
▷ Class constants | 269 | 94.72% |
▷ Public constants | 269 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/ayecode/wp-super-duper/icons/placeholder.png | 29.55KB | 29.15KB | ▼ 1.33% |