89% product-support-now

Code Review | product-support-now

WordPress plugin product-support-now scored89%from 54 tests.

About plugin

  • Plugin page: product-support-now
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7.2
  • WordPress version: 6.3.1
  • First release: May 21, 2021
  • Latest release: May 21, 2021
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: dfrankortiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /840 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by product-support-now
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.07 ▼3.01
Dashboard /wp-admin3.33 ▲0.0249.03 ▼3.63
Posts /wp-admin/edit.php3.38 ▲0.0247.68 ▼4.80
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.43 ▼19.13
Media Library /wp-admin/upload.php3.25 ▲0.0239.30 ▼1.43

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for product-support-now
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.40 ▲0.021.80 ▲0.1538.83 ▼3.87
Dashboard /wp-admin2,221 ▲395.83 ▲0.02105.74 ▼6.6582.08 ▲36.26
Posts /wp-admin/edit.php2,107 ▲182.01 ▲0.0236.93 ▼2.9335.25 ▼1.73
Add New Post /wp-admin/post-new.php1,527 ▲617.64 ▼5.41739.39 ▲53.4455.76 ▼8.19
Media Library /wp-admin/upload.php1,394 ▲94.15 ▼0.03110.53 ▲6.9382.13 ▲33.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can look at the official readme.txt

product-support-now/product-support-now.php 69% from 13 tests

This is the main PHP file of "product-support-now" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path should use only dashes and lowercase characters ("/")
  • Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)
  • Domain Path: Prefix the domain path with a forward slash character ("//")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "4.7")

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
Success! There were no dangerous files found in this plugin397 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP48351366
CSS12031

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity22.33
▷ Minimum class complexity3.00
▷ Maximum class complexity45.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/wmn-icon.png0.93KB0.89KB▼ 4.30%