89% woocustomers

Code Review | WooCustomers

WordPress plugin WooCustomers scored89%from 54 tests.

About plugin

  • Plugin page: woocustomers
  • Plugin version: 1.0-beta...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Sep 15, 2015
  • Latest release: Sep 16, 2015
  • Number of updates: 4
  • Update frequency: every 3.5 days
  • Top authors: Design with Purpose (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /2,356 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
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.71ms] Passed 4 tests

An overview of server-side resources used by WooCustomers
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.72 ▼1.72
Dashboard /wp-admin3.40 ▲0.1049.24 ▲3.41
Posts /wp-admin/edit.php3.45 ▲0.1052.10 ▼5.85
Add New Post /wp-admin/post-new.php5.98 ▲0.1096.33 ▲0.75
Media Library /wp-admin/upload.php3.32 ▲0.1037.22 ▼0.03

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WooCustomers
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.341.76 ▲0.1745.11 ▲0.83
Dashboard /wp-admin2,198 ▲185.63 ▼0.0182.86 ▼3.6538.48 ▼2.73
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0739.74 ▲1.0034.66 ▼0.45
Add New Post /wp-admin/post-new.php1,536 ▲1018.39 ▼4.53592.61 ▼144.2565.57 ▲5.16
Media Library /wp-admin/upload.php1,403 ▲34.21 ▼0.0295.21 ▼7.5341.54 ▼3.74

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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
Looking good! No server-side errors or output on direct access of PHP files

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === woocustomers === )
Please take inspiration from this readme.txt

woocustomers/woocustomers.php 92% from 13 tests

"WooCustomers" version 1.0-beta...'s main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1.0-beta...")

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
Good job! No executable or dangerous file extensions detected1,346 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP311850707
CSS2980608
JavaScript1121031

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity59.00
▷ Minimum class complexity21.00
▷ Maximum class complexity97.00
Average method complexity5.30
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin