89% remove-google-analytics-comments

Code Review | Remove Google Analytics (MonsterInsights) comments

WordPress plugin Remove Google Analytics (MonsterInsights) comments scored89%from 54 tests.

About plugin

  • Plugin page: remove-google-ana...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.2.0-4.7
  • WordPress version: 6.3.1
  • First release: Aug 30, 2016
  • Latest release: Nov 2, 2016
  • Number of updates: 7
  • Update frequency: every 9.2 days
  • Top authors: lowest (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,938 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.11ms] Passed 4 tests

This is a short check of server-side resources used by Remove Google Analytics (MonsterInsights) comments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.55 ▼4.76
Dashboard /wp-admin3.31 ▲0.0046.80 ▼3.78
Posts /wp-admin/edit.php3.36 ▲0.0048.60 ▼3.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.58 ▼8.59
Media Library /wp-admin/upload.php3.23 ▲0.0038.68 ▲0.36

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove Google Analytics (MonsterInsights) comments
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.44 ▼0.111.99 ▲0.3345.31 ▲0.26
Dashboard /wp-admin2,198 ▲185.60 ▼0.0787.95 ▼6.1040.76 ▼3.16
Posts /wp-admin/edit.php2,100 ▲32.05 ▲0.0540.15 ▲2.8637.45 ▲1.54
Add New Post /wp-admin/post-new.php1,545 ▲1423.01 ▼0.20666.29 ▼7.5857.50 ▲0.34
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.0998.84 ▼18.9844.85 ▼5.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: remove ads, monster, monsterinsights, insights, google...

remove-google-analytics-comments/remove-google-analytics-comments.php 77% from 13 tests

This is the main PHP file of "Remove Google Analytics (MonsterInsights) comments" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path should use only dashes and lowercase characters ("")
  • Domain Path: Prefix the domain path with a forward slash character ("/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected33 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP152733

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions7
▷ Named functions114.29%
▷ Anonymous functions685.71%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin