Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.19ms] Passed 4 tests
A check of server-side resources used by WP Best Analytics
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.16 ▲0.03 |
Dashboard /wp-admin | 3.33 ▼0.02 | 42.24 ▼18.55 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.67 ▼0.93 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 80.87 ▼12.68 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 31.36 ▼4.58 |
Analytics Settings /wp-admin/options-general.php?page=wp_best_analytics_analytics_settings | 3.22 | 30.69 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Best Analytics
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.62 ▼0.76 | 8.17 ▲6.40 | 40.18 ▼4.37 |
Dashboard /wp-admin | 2,210 ▲19 | 5.86 ▲0.83 | 95.54 ▼21.34 | 39.32 ▼7.98 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.01 | 34.51 ▼1.43 | 33.20 ▼8.87 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.46 ▼5.64 | 710.09 ▲62.90 | 53.03 ▼0.88 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.12 ▼0.07 | 98.50 ▼2.38 | 43.14 ▼4.95 |
Analytics Settings /wp-admin/options-general.php?page=wp_best_analytics_analytics_settings | 933 | 2.17 | 22.12 | 25.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: analytics, multiple locations
wp-best-analytics/wp-best-analytics.php Passed 13 tests
The primary PHP file in "WP Best Analytics" version 2.0 is used by WordPress to initiate all plugin functionality
108 characters long description:
Best analytics plugin for having analytics installed on live sites and dev sites without showing up on both.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin135 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 78 | 12 | 135 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
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 | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin