84% disable-woo-analytics

Code Review | Disable Woo Analytics

WordPress plugin Disable Woo Analytics scored84%from 54 tests.

About plugin

  • Plugin page: disable-woo-analy...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2
  • WordPress version: 6.3.1
  • First release: Jul 8, 2020
  • Latest release: Jul 9, 2020
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: johnwwweissberg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /506 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Disable Woo Analytics
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0043.08 ▼2.69
Dashboard /wp-admin3.35 ▲0.0048.22 ▼7.87
Posts /wp-admin/edit.php3.40 ▲0.0049.09 ▼9.84
Add New Post /wp-admin/post-new.php5.93 ▲0.0087.33 ▼7.82
Media Library /wp-admin/upload.php3.27 ▲0.0040.01 ▲3.05

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Disable Woo Analytics
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.68 ▲0.411.71 ▼0.1643.91 ▲4.27
Dashboard /wp-admin2,192 ▲155.64 ▼0.0189.61 ▼10.5340.17 ▼7.13
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0534.52 ▼1.7736.73 ▼1.14
Add New Post /wp-admin/post-new.php1,526 ▼223.31 ▲0.22675.48 ▼16.7669.33 ▲18.21
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.1798.74 ▼11.6245.67 ▼1.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-woo-analytics/disable-woo-analytics.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
No plugin tags provided

disable-woo-analytics/disable-woo-analytics.php Passed 13 tests

"Disable Woo Analytics" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
30 characters long description:
Disables WooCommerce Analytics

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
Everything looks great! No dangerous files found in this plugin3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP10113

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin