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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼6.89ms] Passed 4 tests
An overview of server-side resources used by RS Google Analytics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 26.89 ▼14.54 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.47 ▼1.78 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 52.75 ▲4.96 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 93.24 ▼10.98 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.17 ▼0.24 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_rs_google_analytics |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
rs_google_anal |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
RS Google Analytics: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲177 | 13.60 ▼0.95 | 8.55 ▲6.55 | 46.78 ▲3.75 |
Dashboard /wp-admin | 2,209 ▲21 | 4.91 ▼0.90 | 102.55 ▼8.72 | 73.67 ▲28.50 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.01 ▲0.00 | 38.61 ▲2.21 | 34.14 ▼1.37 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.06 ▲5.64 | 695.30 ▲7.90 | 63.08 ▲12.01 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.17 ▼0.06 | 103.91 ▼10.08 | 79.78 ▲28.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to a member function initPlugin() on null in wp-content/plugins/rs-google-analytics/public/views/public.php:10
- > PHP Notice
Undefined variable: myCode in wp-content/plugins/rs-google-analytics/public/views/public.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/rs-google-analytics/admin/views/admin.php:7
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Contributors: The plugin contributors field is not present
rs-google-analytics/rs-google-analytics.php Passed 13 tests
The main PHP script in "RS Google Analytics" version 1.0.1 is automatically included on every request by WordPress
76 characters long description:
Allows you to add your Google Analytics code to either your header of footer
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
Success! There were no dangerous files found in this plugin361 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 97 | 90 | 294 |
JavaScript | 2 | 11 | 2 | 61 |
CSS | 2 | 0 | 2 | 6 |
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 problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 6.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 30 | |
▷ Static methods | 8 | 26.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/small-icon.png | 3.74KB | 1.07KB | ▼ 71.44% |
admin/assets/images/large-icon.png | 6.16KB | 1.80KB | ▼ 70.74% |