84% quick-product

Code Review | Quick Product - Create Product on a whim

WordPress plugin Quick Product - Create Product on a whim scored84%from 54 tests.

About plugin

  • Plugin page: quick-product
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Dec 17, 2015
  • Latest release: Dec 17, 2015
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: crystalpaladin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /858 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.00MB] [CPU: ▼11.15ms] Passed 4 tests

A check of server-side resources used by Quick Product - Create Product on a whim
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.21 ▼1.75
Dashboard /wp-admin3.32 ▼0.0347.63 ▼21.98
Posts /wp-admin/edit.php3.37 ▲0.0148.63 ▼4.27
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.93 ▼16.59
Media Library /wp-admin/upload.php3.24 ▲0.0141.07 ▲1.80

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Quick Product - Create Product on a whim
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.48 ▲0.041.85 ▼0.3640.80 ▼7.34
Dashboard /wp-admin2,210 ▲195.90 ▲1.04105.69 ▼2.0639.11 ▲1.62
Posts /wp-admin/edit.php2,096 ▲102.00 ▼0.0435.05 ▼2.6632.37 ▼1.72
Add New Post /wp-admin/post-new.php1,534 ▲1423.07 ▼0.12648.63 ▼33.5965.97 ▲9.78
Media Library /wp-admin/upload.php1,386 ▼24.11 ▼0.06117.25 ▼1.2250.41 ▼0.94

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 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 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-product/quick-product.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 34 tag instead of maximum 10
The official readme.txt might help

quick-product/quick-product.php 92% from 13 tests

The entry point to "Quick Product - Create Product on a whim" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 310 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin181 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23740127
JavaScript15635
CSS10419

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png24.01KB8.97KB▼ 62.64%
assets/screenshot-1.png22.63KB8.42KB▼ 62.81%
assets/screenshot-3.png23.37KB8.69KB▼ 62.82%