84% update-customer

Code Review | Update customer

WordPress plugin Update customer scored84%from 54 tests.

About plugin

  • Plugin page: update-customer
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.1.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2019
  • Latest release: Apr 16, 2019
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: wpexpertgr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /574 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼13.17ms] Passed 4 tests

This is a short check of server-side resources used by Update customer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.09 ▼9.84
Dashboard /wp-admin3.33 ▲0.0250.99 ▼9.92
Posts /wp-admin/edit.php3.38 ▲0.0252.98 ▼17.61
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.65 ▼15.29
Media Library /wp-admin/upload.php3.25 ▲0.0242.25 ▲6.33
Update customer /wp-admin/options-general.php?page=update-customer3.2840.12

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Update customer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1114.34 ▼0.011.57 ▼0.3043.19 ▼2.56
Dashboard /wp-admin2,203 ▲265.55 ▼0.0889.11 ▲0.5240.05 ▲0.41
Posts /wp-admin/edit.php2,111 ▲112.04 ▲0.0335.97 ▼12.6236.16 ▼6.00
Add New Post /wp-admin/post-new.php1,533 ▲723.35 ▲0.36674.91 ▲81.7353.45 ▲0.71
Media Library /wp-admin/upload.php1,408 ▲54.18 ▼0.0499.07 ▼4.5144.87 ▼1.47
Update customer /wp-admin/options-general.php?page=update-customer1,5436.55133.6262.31

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/update-customer/update-customer.php

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 93% 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
Attributes that require attention:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

update-customer/update-customer.php 92% from 13 tests

The primary PHP file in "Update customer" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin169 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22729143
CSS15026

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected