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.05MB] [CPU: ▼0.58ms] Passed 4 tests
Analyzing server-side resources used by MyAnalytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 43.86 ▼2.94 |
Dashboard /wp-admin | 3.35 ▲0.05 | 51.03 ▼1.84 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 56.38 ▲1.23 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 103.21 ▲1.22 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 40.70 ▲5.13 |
MyAnalytics /wp-admin/options-general.php?page=myanalytics | 3.24 | 40.47 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by MyAnalytics
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲23 | 13.27 ▼0.43 | 5.84 ▲4.11 | 40.83 ▲2.16 |
Dashboard /wp-admin | 2,213 ▲7 | 4.84 ▼1.03 | 110.70 ▲4.11 | 41.66 ▲3.71 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.99 ▼0.06 | 39.95 ▲0.55 | 34.73 ▼0.92 |
Add New Post /wp-admin/post-new.php | 1,517 ▼19 | 17.76 ▼5.37 | 594.33 ▼11.66 | 49.77 ▼0.63 |
Media Library /wp-admin/upload.php | 1,389 ▲7 | 4.13 ▼0.11 | 97.78 ▼2.37 | 46.20 ▲4.52 |
MyAnalytics /wp-admin/options-general.php?page=myanalytics | 848 | 2.06 | 26.54 | 29.36 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/myanalytics/myanalytics.php:112
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: google, cookies, cnil, dnt, rgpd...
myanalytics/myanalytics.php Passed 13 tests
The entry point to "MyAnalytics" version 7.0.1 is a PHP file that has certain tags in its header comment area
90 characters long description:
Affiche le tag Google Analytics ainsi que le message d'obligation légale sur les cookies.
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
Good job! No executable or dangerous file extensions detected293 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 24 | 11 | 141 |
PHP | 1 | 23 | 10 | 114 |
PO File | 1 | 9 | 9 | 38 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 are no PNG files in this plugin