90% wp-best-analytics

Code Review | WP Best Analytics

WordPress plugin WP Best Analytics scored90%from 54 tests.

About plugin

  • Plugin page: wp-best-analytics
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.0.1
  • WordPress version: 6.3.1
  • First release: Aug 13, 2018
  • Latest release: Dec 19, 2018
  • Number of updates: 5
  • Update frequency: every 26.4 days
  • Top authors: eastsidecode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /553 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.16 ▲0.03
Dashboard /wp-admin3.33 ▼0.0242.24 ▼18.55
Posts /wp-admin/edit.php3.38 ▲0.0243.67 ▼0.93
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.87 ▼12.68
Media Library /wp-admin/upload.php3.25 ▲0.0231.36 ▼4.58
Analytics Settings /wp-admin/options-general.php?page=wp_best_analytics_analytics_settings3.2230.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.62 ▼0.768.17 ▲6.4040.18 ▼4.37
Dashboard /wp-admin2,210 ▲195.86 ▲0.8395.54 ▼21.3439.32 ▼7.98
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0134.51 ▼1.4333.20 ▼8.87
Add New Post /wp-admin/post-new.php1,517 ▼217.46 ▼5.64710.09 ▲62.9053.03 ▼0.88
Media Library /wp-admin/upload.php1,386 ▼24.12 ▼0.0798.50 ▼2.3843.14 ▼4.95
Analytics Settings /wp-admin/options-general.php?page=wp_best_analytics_analytics_settings9332.1722.1225.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:
LanguageFilesBlank linesComment linesLines of code
PHP17812135

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 code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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