Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.75ms] Passed 4 tests
An overview of server-side resources used by CellarWeb Server Side Analytics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.77 ▼0.13 |
Dashboard /wp-admin | 3.36 ▲0.06 | 52.25 ▲0.53 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 48.70 ▲3.30 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.75 ▼10.71 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 40.62 ▲4.80 |
Server Side Analytics Settings /wp-admin/options-general.php?page=simple-cwssa | 3.23 | 36.59 |
Server storage [IO: ▲6.52MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CellarWeb Server Side Analytics
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.70 ▲0.17 | 1.66 ▼0.59 | 46.72 ▲1.50 |
Dashboard /wp-admin | 2,198 ▲21 | 5.55 ▼0.17 | 87.23 ▼17.50 | 36.44 ▼9.91 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.99 ▲0.00 | 33.91 ▼3.96 | 34.03 ▼4.63 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.10 ▼0.34 | 633.37 ▼37.77 | 53.91 ▲2.30 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.28 ▲0.03 | 96.61 ▼17.82 | 41.13 ▼7.28 |
Server Side Analytics Settings /wp-admin/options-general.php?page=simple-cwssa | 1,018 | 2.00 | 26.49 | 49.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=simple-cwssa
- > Notice in wp-content/plugins/cellarweb-server-side-analytics/server-side-analytics.php+154
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/cellarweb-server-side-analytics/server-side-analytics.php:331
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: privacy, google analytics, gdpr
cellarweb-server-side-analytics/server-side-analytics.php 85% from 13 tests
The primary PHP file in "CellarWeb Server Side Analytics" version 1.02 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("cellarweb-server-side-analytics.php" instead of "server-side-analytics.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 304 characters long)
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
No dangerous file extensions were detected455 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 48 | 101 | 302 |
CSS | 2 | 26 | 4 | 153 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 3.03MB with 2.68MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1000x200.png | 605.62KB | 83.25KB | ▼ 86.25% |
assets/banner-772x250.png | 743.06KB | 92.55KB | ▼ 87.54% |
assets/icon-256x256.png | 573.75KB | 36.02KB | ▼ 93.72% |
assets/icon-128x128.png | 222.92KB | 11.54KB | ▼ 94.82% |
assets/cellarweb-logo-2022.png | 954.49KB | 191.67KB | ▼ 79.92% |