99% check-user-postcode

Code Review | Check User Postcode

WordPress plugin Check User Postcode scored 99% from 54 tests.

About plugin

  • Plugin page: check-user-postcode
  • Plugin version: 3.0.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.6
  • WordPress version: 5.8.1
  • First release: Feb 14, 2020
  • Latest release: Dec 9, 2020
  • Number of updates: 8
  • Update frequency: every 37.5 days
  • Top authors: paulio21 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 455 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼145.37ms] Passed 4 tests

Server-side resources used by Check User Postcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0436.69 ▲0.81
Dashboard /wp-admin3.10 ▲0.0547.36 ▲2.34
Posts /wp-admin/edit.php3.16 ▲0.0542.95 ▲1.62
Add New Post /wp-admin/post-new.php5.46 ▲0.0387.31 ▼575.67
Media Library /wp-admin/upload.php3.05 ▲0.0426.36 ▼8.25

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 4 new options
New WordPress options
cupp21_2ndmessage
cupp21_1stmessage
cupp21_3rdmessage
cupp21_postcodes

Browser metrics Passed 4 tests

A check of browser resources used by Check User Postcode
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,698 ▲12615.86 ▼0.248.14 ▼3.9849.06 ▼1.51
Dashboard /wp-admin2,985 ▲525.89 ▼0.16154.96 ▼24.05101.69 ▼15.33
Posts /wp-admin/edit.php2,754 ▲152.70 ▼0.0167.14 ▲3.9293.27 ▲10.95
Add New Post /wp-admin/post-new.php1,693 ▲7818.73 ▼2.69381.30 ▲88.20109.36 ▲3.68
Media Library /wp-admin/upload.php1,822 ▲155.05 ▲0.01147.10 ▼13.25113.01 ▼18.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 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 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 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: local, check, tradesmen, postcode, user

check-user-postcode/checkuserpostcode.php 77% from 13 tests

Analyzing the main PHP file in "Check User Postcode" version 3.0.1
You should first fix the following items:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.2.2" instead of "5.2")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.2" instead of "5.2")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("check-user-postcode.php" instead of "checkuserpostcode.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin322 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35859322

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected