89% as-blacklist-customer

Code Review | AS Blacklist Customer

WordPress plugin AS Blacklist Customer scored89%from 54 tests.

About plugin

  • Plugin page: as-blacklist-cust...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.3
  • WordPress version: 6.3.1
  • First release: Dec 14, 2019
  • Latest release: Dec 16, 2019
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: aksharsoftsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /454 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.30ms] Passed 4 tests

This is a short check of server-side resources used by AS Blacklist Customer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.49 ▼7.43
Dashboard /wp-admin3.32 ▲0.0150.41 ▼2.43
Posts /wp-admin/edit.php3.37 ▲0.0150.57 ▲2.77
Add New Post /wp-admin/post-new.php5.90 ▲0.01100.06 ▲6.65
Media Library /wp-admin/upload.php3.24 ▲0.0132.59 ▼2.10

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

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

Browser metrics Passed 4 tests

Checking browser requirements for AS Blacklist Customer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.47 ▲0.091.74 ▼0.5041.37 ▼5.18
Dashboard /wp-admin2,207 ▲195.88 ▲0.02108.14 ▼5.6842.48 ▼4.22
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0840.10 ▲3.8035.91 ▲3.26
Add New Post /wp-admin/post-new.php1,541 ▲2223.08 ▲0.00646.49 ▼20.8555.44 ▼2.29
Media Library /wp-admin/upload.php1,389 ▲14.23 ▲0.0798.78 ▼8.9945.39 ▼1.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention: The official readme.txt is a good inspiration

as-blacklist-customer/woocommerce-as-blacklist-customer.php 77% from 13 tests

The main PHP file in "AS Blacklist Customer" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("as-blacklist-customer.php" instead of "woocommerce-as-blacklist-customer.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "4.4.0")

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
Success! There were no dangerous files found in this plugin168 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP45178136
PO File17832

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity4.75
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods14
▷ Static methods535.71%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin