89% inext-woo-pincode-checker

Code Review | iNext Woo Pincode Checker

WordPress plugin iNext Woo Pincode Checker scored89%from 54 tests.

About plugin

  • Plugin page: inext-woo-pincode...
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: May 29, 2022
  • Latest release: Jun 27, 2023
  • Number of updates: 15
  • Update frequency: every 26.3 days
  • Top authors: imdadnextweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,232 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼9.67ms] Passed 4 tests

Server-side resources used by iNext Woo Pincode Checker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.43 ▼1.66
Dashboard /wp-admin3.53 ▲0.2250.15 ▼4.86
Posts /wp-admin/edit.php3.58 ▲0.2250.43 ▼12.43
Add New Post /wp-admin/post-new.php6.06 ▲0.1886.11 ▼19.73
Media Library /wp-admin/upload.php3.38 ▲0.1641.50 ▲6.20
Welcome /wp-admin/admin.php?page=inext-wpc-welcome3.4034.90
Settings /wp-admin/admin.php?page=inext-wpc-settings3.4940.75

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: no new tables, 24 new options
New WordPress options
_inext_wpc_pincode_field_length
_inext_wpc_pincode_field_error
_inext_wpc_is_product_enabled
theysaidso_admin_options
_inext_wpc_pincode_field_label
db_upgraded
_inext_wpc_is_single_product_atc_btn_disabled
_inext_wpc_pincode_field_placeholder_is_enabled
_inext_wpc_pincode_field_success
_inext_wpc_is_pincode_alphanumeric_enabled
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for iNext Woo Pincode Checker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,039 ▲30419.99 ▲5.597.21 ▲4.8542.01 ▼4.81
Dashboard /wp-admin2,326 ▲1388.96 ▲4.05139.66 ▲23.8843.19 ▲3.13
Posts /wp-admin/edit.php2,206 ▲1176.03 ▲4.0362.44 ▲20.8236.81 ▲4.66
Add New Post /wp-admin/post-new.php6,396 ▲4,85226.97 ▲8.601,015.32 ▲395.8438.10 ▼13.23
Media Library /wp-admin/upload.php1,500 ▲1216.89 ▲2.70138.40 ▲40.7048.72 ▲3.26
Welcome /wp-admin/admin.php?page=inext-wpc-welcome1,0095.7842.5661.50
Settings /wp-admin/admin.php?page=inext-wpc-settings1,4355.5965.5755.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

inext-woo-pincode-checker/inext-woo-pincode-checker.php 85% from 13 tests

"iNext Woo Pincode Checker" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")
  • Description: Keep the plugin description shorter than 140 characters (currently 183 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected42,079 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
CSS37,61926240,525
PHP232471531,335
JavaScript62342219

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.26
▷ Minimum class complexity2.00
▷ Maximum class complexity36.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods84
▷ Static methods84100.00%
▷ Public methods6779.76%
▷ Protected methods00.00%
▷ Private methods1720.24%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants42
▷ Global constants42100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/frontend/img/location-marker.png1.99KB2.18KB0.00%