Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼14.08ms] Passed 4 tests
A check of server-side resources used by Unofficial Plausible Analytics Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.02 ▼24.58 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.10 ▼12.89 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 53.14 ▼0.82 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.08 ▼18.02 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.82 ▼0.51 |
Plausible Analytics Settings /wp-admin/options-general.php?page=plausible_unofficial | 3.19 | 35.34 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
plausible_unofficial_domain_name |
plausible_unofficial_disable_admin_analytics |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Unofficial Plausible Analytics Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲8 | 14.71 ▲0.42 | 2.59 ▼0.21 | 46.53 ▼21.32 |
Dashboard /wp-admin | 2,199 ▲19 | 5.65 ▼0.02 | 86.57 ▼10.67 | 39.40 ▼0.61 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▼0.06 | 43.94 ▲7.35 | 36.70 ▲0.52 |
Add New Post /wp-admin/post-new.php | 1,535 ▲3 | 23.07 ▲0.05 | 661.02 ▲6.41 | 56.49 ▲1.52 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.21 ▼0.09 | 95.60 ▼12.22 | 45.79 ▲0.62 |
Plausible Analytics Settings /wp-admin/options-general.php?page=plausible_unofficial | 816 | 2.02 | 27.01 | 31.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- can_compress_scripts
- plausible_unofficial_disable_admin_analytics
- plausible_unofficial_domain_name
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=plausible_unofficial
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=plausible_unofficial
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unofficial-plausible-analytics/unofficial_plausible.php:16
- > 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 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: plausible, analytics
unofficial-plausible-analytics/unofficial_plausible.php 85% from 13 tests
The main PHP file in "Unofficial Plausible Analytics Plugin" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("unofficial-plausible-analytics.php" instead of "unofficial_plausible.php")
- Description: The description should be shorter than 140 characters (currently 150 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected45 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 14 | 45 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin