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.53ms] Passed 4 tests
A check of server-side resources used by Simple Google Analytics by ST
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.79 ▲1.38 |
Dashboard /wp-admin | 3.32 ▼0.03 | 48.43 ▼16.12 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.06 ▼2.40 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 96.22 ▼8.99 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.26 ▲1.41 |
Add Google Analytics /wp-admin/options-general.php?page=sgabst-google-analytics | 3.21 | 32.83 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Google Analytics by ST
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲72 | 13.57 ▼0.83 | 1.83 ▼0.16 | 44.92 ▲0.11 |
Dashboard /wp-admin | 2,225 ▲22 | 5.85 ▼0.05 | 99.79 ▼5.88 | 40.93 ▼2.32 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.03 | 47.76 ▲10.39 | 43.33 ▲7.86 |
Add New Post /wp-admin/post-new.php | 1,529 ▼2 | 17.72 ▼5.61 | 666.33 ▲6.84 | 55.13 ▼1.12 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.26 ▲0.02 | 103.29 ▼4.63 | 45.36 ▼1.77 |
Add Google Analytics /wp-admin/options-general.php?page=sgabst-google-analytics | 833 | 2.01 | 23.19 | 46.49 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 86% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI ("#")
- Tags: There are too many tags (11 tag instead of maximum 10)
- Screenshots: Please add an image for screenshot #1 (Google Analytics Setting main screen.)
simple-google-analytics-by-st/sgabst.php 92% from 13 tests
Analyzing the main PHP file in "Simple Google Analytics by ST" version 1.0.3
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-google-analytics-by-st.php" instead of "sgabst.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
There were no executable files found in this plugin174 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 33 | 29 | 124 |
CSS | 1 | 5 | 0 | 50 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin