74% courier-address

Code Review | Courier Address

WordPress plugin Courier Address scored74%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: 6.3.1
  • 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,684 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.84MB] [CPU: ▼42.02ms] Passed 4 tests

This is a short check of server-side resources used by Courier Address
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0928.34 ▼16.77
Dashboard /wp-admin3.14 ▼0.2026.49 ▼32.05
Posts /wp-admin/edit.php3.14 ▼0.2525.77 ▼30.85
Add New Post /wp-admin/post-new.php3.14 ▼2.7828.44 ▼88.39
Media Library /wp-admin/upload.php3.14 ▼0.1327.56 ▼12.67
Courier Address /wp-admin/options-general.php?page=courier-address3.1527.40

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Courier Address
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲15214.27 ▼0.3629.66 ▲28.0140.48 ▼3.07
Dashboard /wp-admin2,198 ▲215.57 ▼0.0387.66 ▼2.2439.63 ▼4.57
Posts /wp-admin/edit.php2,106 ▲92.02 ▲0.0338.23 ▲1.6933.35 ▼4.01
Add New Post /wp-admin/post-new.php1,531 ▲322.95 ▼0.11671.75 ▼2.4654.31 ▼14.60
Media Library /wp-admin/upload.php1,409 ▲94.25 ▲0.1599.13 ▼20.5644.91 ▼2.88
Courier Address /wp-admin/options-general.php?page=courier-address1,1942.0324.4449.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP 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 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 need to be fixed:
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt might help

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

"Courier Address" version 3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • 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 | A short check of programming languages and file extensions; no executable files are allowed
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

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
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

PNG files should be compressed to save space and minimize bandwidth usage
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/screenshot-1.png124.82KB52.55KB▼ 57.90%
images/help.png1.34KB1.36KB0.00%