90% th23-contact

Code Review | th23 Contact

WordPress plugin th23 Contact scored 90% from 53 tests.

About plugin

  • Plugin page: th23-contact
  • Plugin version: 2.4.0
  • PHP compatiblity: 5.6.32+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.4
  • WordPress version: 5.8.1
  • First release: Jun 23, 2020
  • Latest release: Jun 23, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: th23 (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 197 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 gracefully, with no errors

Server metrics [RAM: ▲0.26MB] [CPU: ▼252.55ms] Passed 4 tests

Analyzing server-side resources used by th23 Contact
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1733.04 ▲10.90
Dashboard /wp-admin3.35 ▲0.2947.49 ▲5.56
Posts /wp-admin/edit.php3.46 ▲0.3549.08 ▲5.91
Add New Post /wp-admin/post-new.php5.72 ▲0.3098.49 ▼1,023.64
Media Library /wp-admin/upload.php3.30 ▲0.3042.46 ▲1.96
th23 Contact /wp-admin/options-general.php?page=th23-contact3.2836.53

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 1 new option
New WordPress options
th23_contact_options

Browser metrics Passed 4 tests

th23 Contact: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,691 ▲10915.73 ▲0.177.85 ▲0.5146.90 ▼4.38
Dashboard /wp-admin2,948 ▲926.13 ▲0.24138.13 ▼8.59102.70 ▼6.60
Posts /wp-admin/edit.php2,711 ▲82.82 ▲0.1464.60 ▼0.5788.73 ▼2.84
Add New Post /wp-admin/post-new.php1,860 ▲20719.18 ▲0.44369.64 ▲1.39107.24 ▼6.75
Media Library /wp-admin/upload.php1,777 ▲85.00 ▼0.01143.01 ▼10.08109.51 ▼19.99
th23 Contact /wp-admin/options-general.php?page=th23-contact1,2962.1552.7567.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 option in the database
    • th23_contact_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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: contact, message, mail, contact form, shortcode

th23-contact/th23-contact.php 92% from 13 tests

The main PHP script in "th23 Contact" version 2.4.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 178 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 plugin1,881 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP21932711,217
PO File190125329
CSS2721225
JavaScript21227110

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity107.67
▷ Minimum class complexity1.00
▷ Maximum class complexity260.00
Average method complexity8.80
▷ Minimum method complexity1.00
▷ Maximum method complexity81.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon-square.png8.88KB3.14KB▼ 64.58%
img/icon-horizontal.png6.11KB1.63KB▼ 73.39%