84% courier-address

Code Review | Courier Address

WordPress plugin Courier Address scored 84% from 54 tests.

About plugin

  • Plugin page: courier-address
  • Plugin version: 3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.2
  • WordPress version: 5.9.2
  • First release: Jan 24, 2017
  • Latest release: Jun 27, 2017
  • Number of updates: 46
  • Update frequency: every 3.3 days
  • Top authors: anewholm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,425 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼1.12MB] [CPU: ▼337.49ms] Passed 4 tests

Server-side resources used by Courier Address
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0658.28 ▲4.81
Dashboard /wp-admin3.21 ▼0.2019.41 ▼34.08
Posts /wp-admin/edit.php3.21 ▼0.4319.96 ▼22.20
Add New Post /wp-admin/post-new.php3.21 ▼3.7630.68 ▼1,284.65
Media Library /wp-admin/upload.php3.21 ▼0.0917.98 ▼9.02
Courier Address /wp-admin/options-general.php?page=courier-address3.2121.88

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Courier Address
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,921 ▲17717.16 ▲1.5919.30 ▲13.252.57 ▲0.46
Dashboard /wp-admin2,899 ▲446.11 ▼0.08122.63 ▼19.77156.22 ▼14.91
Posts /wp-admin/edit.php2,695 ▲73.23 ▲0.0066.08 ▼28.42142.56 ▼4.73
Add New Post /wp-admin/post-new.php1,778 ▲11721.13 ▼0.04455.24 ▲43.05209.21 ▲43.81
Media Library /wp-admin/upload.php1,705 ▲75.49 ▼0.05139.73 ▼8.37240.47 ▲50.94
Courier Address /wp-admin/options-general.php?page=courier-address1,5372.4356.53161.99

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5768
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=courier-address
    • > User notice in wp-includes/functions.php+5768
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

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 uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can look at the official readme.txt

courier-address/courier-address.php 92% from 13 tests

The primary PHP file in "Courier Address" version 3.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin889 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP16846528
JavaScript23436255
CSS29882
PO File242224

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
2 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/help.png1.34KB1.36KB0.00%
images/screenshot-1.png124.82KB52.55KB▼ 57.90%