Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼13.86ms] Passed 4 tests
This is a short check of server-side resources used by CMWP-Analytics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 39.55 ▲3.82 |
Dashboard /wp-admin | 3.37 ▲0.03 | 44.39 ▼20.35 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 44.55 ▼6.11 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 81.47 ▼28.54 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 33.17 ▼0.43 |
CMWP Analytics /wp-admin/options-general.php?page=cmwp-analytics | 3.26 | 31.59 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
CMWP-Analytics: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.31 ▼1.27 | 4.52 ▲2.89 | 43.61 ▲2.36 |
Dashboard /wp-admin | 2,213 ▲25 | 4.86 ▼0.04 | 105.27 ▼0.88 | 37.48 ▼5.76 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▼0.03 | 34.66 ▼5.67 | 32.53 ▼3.51 |
Add New Post /wp-admin/post-new.php | 1,520 ▼2 | 17.82 ▼5.27 | 602.84 ▼39.81 | 51.88 ▼14.34 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.00 | 95.13 ▼1.10 | 41.90 ▼1.52 |
CMWP Analytics /wp-admin/options-general.php?page=cmwp-analytics | 876 | 2.05 | 28.77 | 28.70 |
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
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/cmwp-analytics/templates/tracking-snippet/google-analytics-universal.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: gaoptout in wp-content/plugins/cmwp-analytics/templates/tracking-snippet/google-analytics-universal.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cmwp-analytics/templates/admin/options-page.php:2
- > PHP Notice
Undefined variable: anonymizeip in wp-content/plugins/cmwp-analytics/templates/tracking-snippet/google-analytics-universal.php on line 25
- > PHP Notice
Undefined variable: linker in wp-content/plugins/cmwp-analytics/templates/tracking-snippet/google-analytics-universal.php on line 28
- > PHP Notice
Undefined variable: tracking_id in wp-content/plugins/cmwp-analytics/templates/tracking-snippet/google-analytics-universal.php on line 24
- > PHP Notice
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 Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: analytics, cross-domain, tracking, linker, autolink...
cmwp-analytics/cmwp-analytics.php Passed 13 tests
The principal PHP file in "CMWP-Analytics" v. 0.4 is loaded by WordPress automatically on each request
39 characters long description:
Google Analytics Univsersal integration
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
Good job! No executable or dangerous file extensions detected357 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 86 | 169 | 357 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.35 |
▷ 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 | 1 | 33.33% |
Methods | 34 | |
▷ Static methods | 1 | 2.94% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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