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 gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.86ms] Passed 4 tests
An overview of server-side resources used by Tracking Code for Google Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 42.21 ▼0.17 |
Dashboard /wp-admin | 49.88 ▲46.53 | 9,606,764.05 ▲9,606,711.37 |
Posts /wp-admin/edit.php | 3.43 ▲0.03 | 52.07 ▲0.79 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.03 | 99.46 ▼1.37 |
Media Library /wp-admin/upload.php | 3.30 ▲0.02 | 38.12 ▼2.70 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Tracking Code for Google Analytics
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.25 ▼0.33 | 2.01 ▲0.04 | 43.34 ▲3.14 |
Dashboard /wp-admin | 2,195 ▲20 | 5.59 ▼0.12 | 84.64 ▼24.31 | 39.68 ▼2.07 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.03 ▲0.00 | 38.38 ▼11.47 | 36.66 ▼2.58 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.26 ▲0.19 | 622.20 ▼108.77 | 67.38 ▲3.71 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.16 ▼0.01 | 100.56 ▼0.13 | 42.15 ▼5.98 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Tracking_Code_For_Google_Analytics\\add_action() in wp-content/plugins/tracking-code-for-google-analytics/inc/admin.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function Tracking_Code_For_Google_Analytics\\add_action() in wp-content/plugins/tracking-code-for-google-analytics/inc/public.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function Tracking_Code_For_Google_Analytics\\add_action() in wp-content/plugins/tracking-code-for-google-analytics/inc/admin.php:15
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: tracking code, google, tracking, tracking snippet, universal analytics...
tracking-code-for-google-analytics/tracking-code-for-google-analytics.php Passed 13 tests
The main file in "Tracking Code for Google Analytics" v. 2.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
79 characters long description:
Simple, lightweight solution for inserting your Google Analytics tracking code.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected99 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 20 | 81 | 99 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 1 | |
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 | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected