77% product-auto-release-with-upvote-countdown

Code Review | Product Auto Release with Upvote & Countdown

WordPress plugin Product Auto Release with Upvote & Countdown scored 77% from 54 tests.

About plugin

  • Plugin page: product-auto-rele...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.1
  • WordPress version: 6.3.1
  • First release: May 9, 2023
  • Latest release: Sep 6, 2023
  • Number of updates: 5
  • Update frequency: every 26.4 days
  • Top authors: creedally (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 141 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.68ms] Passed 4 tests

A check of server-side resources used by Product Auto Release with Upvote & Countdown
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.23 ▼5.58
Dashboard /wp-admin3.31 ▲0.0045.56 ▼1.97
Posts /wp-admin/edit.php3.36 ▲0.0049.12 ▲1.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.03 ▼0.48
Media Library /wp-admin/upload.php3.23 ▲0.0038.89 ▲5.18
Product Auto Release /wp-admin/options-general.php?page=product-auto-release3.0023.05

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Product Auto Release with Upvote & Countdown
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.071.59 ▼0.4139.38 ▼13.64
Dashboard /wp-admin2,206 ▲185.86 ▼0.01101.81 ▼14.4135.98 ▼10.53
Posts /wp-admin/edit.php2,092 ▲61.98 ▼0.0252.11 ▲14.3535.28 ▼1.72
Add New Post /wp-admin/post-new.php1,537 ▲2323.50 ▲5.96647.73 ▼48.4064.18 ▼6.33
Media Library /wp-admin/upload.php1,391 ▼04.22 ▲0.0398.37 ▼0.7344.67 ▼1.43
Product Auto Release /wp-admin/options-general.php?page=product-auto-release280.440.083.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/product-auto-release-with-upvote-countdown/admin/class-voted-list-table.php on line 9
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/product-auto-release-with-upvote-countdown/admin/class-voted-list-table.php on line 9
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/product-auto-release-with-upvote-countdown/admin/class-voted-list-table.php on line 9

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=product-auto-release
    • > Network (severe)
    wp-admin/options-general.php?page=product-auto-release - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 86% 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
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Plugin settings page.), #2 (Product auto release settings.), #3 (Product live admin email setting.), #4 (Displat upvote and timer in product page.), #5 (Display upvote lists with product filter.)
Please take inspiration from this readme.txt

product-auto-release-with-upvote-countdown/product-auto-release-lite.php 77% from 13 tests

The main file in "Product Auto Release with Upvote & Countdown" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("product-auto-release-with-upvote-countdown.php" instead of "product-auto-release-lite.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,422 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP132725461,117
JavaScript4280196
CSS511473
Markdown112030
SVG1006

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity26.17
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity4.02
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods50
▷ Static methods48.00%
▷ Public methods4692.00%
▷ Protected methods00.00%
▷ Private methods48.00%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.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
No PNG files were detected