84% woo-data-updater

Code Review | Woo Data Updater

WordPress plugin Woo Data Updater scored84%from 54 tests.

About plugin

  • Plugin page: woo-data-updater
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3
  • WordPress version: 6.3.1
  • First release: Oct 3, 2015
  • Latest release: Oct 3, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: mehulkaklotar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /626 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
This plugin's installer ran successfully

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

Server-side resources used by Woo Data Updater
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0141.24 ▲1.42
Dashboard /wp-admin3.31 ▲0.0042.98 ▼6.60
Posts /wp-admin/edit.php3.36 ▲0.0049.35 ▲1.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.10 ▼13.98
Media Library /wp-admin/upload.php3.23 ▲0.0037.39 ▲7.54

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woo Data Updater
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.181.61 ▼0.0841.97 ▼4.88
Dashboard /wp-admin2,203 ▲185.83 ▼0.0797.61 ▼40.5741.39 ▲0.41
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0438.59 ▼3.1033.94 ▼1.53
Add New Post /wp-admin/post-new.php1,528 ▼823.32 ▲0.33667.47 ▲82.9754.57 ▲3.49
Media Library /wp-admin/upload.php1,391 ▼04.22 ▲0.0296.05 ▼1.9340.62 ▼4.67

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/woo-data-updater/class-wc-data-update-cli.php:7

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === woo-data-updater === )
The official readme.txt is a good inspiration

woo-data-updater/woo-data-updater.php Passed 13 tests

The entry point to "Woo Data Updater" version 1.0 is a PHP file that has certain tags in its header comment area
56 characters long description:
A woocommerce add on to support data updater with WP-CLI

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected77 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2166651
Markdown117026

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected