84% woocommerce-notices-fix

Code Review | WooCommerce Notices Fix

WordPress plugin WooCommerce Notices Fix scored 84% from 54 tests.

About plugin

  • Plugin page: woocommerce-notic...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5.1-4.0
  • WordPress version: 6.3.1
  • First release: Oct 19, 2014
  • Latest release: Oct 20, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: juliobox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,002 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

An overview of server-side resources used by WooCommerce Notices Fix
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.72 ▼4.89
Dashboard /wp-admin3.31 ▲0.0048.72 ▲1.87
Posts /wp-admin/edit.php3.36 ▲0.0048.45 ▲2.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.90 ▼3.64
Media Library /wp-admin/upload.php3.23 ▲0.0032.92 ▼3.13

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

WooCommerce Notices Fix: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.391.76 ▼0.3643.04 ▼2.74
Dashboard /wp-admin2,203 ▲155.88 ▼0.02102.74 ▼5.1440.31 ▼2.44
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0140.61 ▼0.9434.99 ▼1.35
Add New Post /wp-admin/post-new.php1,542 ▲2818.31 ▲0.81629.09 ▲6.3066.92 ▲13.94
Media Library /wp-admin/upload.php1,382 ▼34.22 ▼0.0096.14 ▼7.6043.04 ▲1.76

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/woocommerce-notices-fix/woo_notices.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
3 plugin tags: notices, woocommerce, hotfix

woocommerce-notices-fix/woo_notices.php 92% from 13 tests

The main PHP file in "WooCommerce Notices Fix" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woocommerce-notices-fix.php" instead of "woo_notices.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1179

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code1.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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
No PNG files were detected