Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.58ms] Passed 4 tests
A check of server-side resources used by Analytics for Cloudflare
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.33 ▼0.73 |
Dashboard /wp-admin | 3.44 ▲0.14 | 53.07 ▼0.37 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 51.35 ▲0.45 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 94.91 ▼17.67 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 38.74 ▲0.47 |
Analytics For CloudFlare /wp-admin/options-general.php?page=cmd_analytics_for_cloudflare | 3.33 | 35.28 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Analytics for Cloudflare
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲103 | 13.46 ▼0.78 | 1.78 ▲0.11 | 41.96 ▼0.53 |
Dashboard /wp-admin | 2,267 ▲64 | 5.18 ▲0.25 | 105.22 ▼0.47 | 40.37 ▼5.54 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 2.00 ▼0.04 | 39.42 ▲3.14 | 35.34 ▲2.35 |
Add New Post /wp-admin/post-new.php | 1,562 ▲31 | 18.07 ▼5.09 | 664.04 ▼51.02 | 68.05 ▲16.17 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.22 ▼0.01 | 103.76 ▼2.58 | 46.20 ▼3.35 |
Analytics For CloudFlare /wp-admin/options-general.php?page=cmd_analytics_for_cloudflare | 811 | 2.04 | 23.36 | 25.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 did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- 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 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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
3 plugin tags: analytics, dashboard, admin
analytics-for-cloudflare/analytics-for-cloudflare.php 92% from 13 tests
The entry point to "Analytics for Cloudflare" version 1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin5,838 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 1,106 | 668 | 5,014 |
PHP | 8 | 211 | 348 | 633 |
Markdown | 5 | 48 | 0 | 106 |
CSS | 1 | 17 | 0 | 85 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 13.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 4 | 6.45% |
▷ Public methods | 60 | 96.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.23% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin