84% one-click-coming-soon

Code Review | One Click Coming Soon

WordPress plugin One Click Coming Soon scored84%from 54 tests.

About plugin

  • Plugin page: one-click-coming-...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 4, 2020
  • Latest release: Mar 4, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: abulogics (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /416 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼12.24ms] Passed 4 tests

Analyzing server-side resources used by One Click Coming Soon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.90 ▼6.07
Dashboard /wp-admin3.32 ▼0.0247.77 ▼17.41
Posts /wp-admin/edit.php3.37 ▲0.0251.45 ▲3.79
Add New Post /wp-admin/post-new.php5.92 ▲0.0482.50 ▼22.67
Media Library /wp-admin/upload.php3.25 ▲0.0237.45 ▼2.80
One Click Coming Soon /wp-admin/options-general.php?page=one_click_coming_soon3.2428.63

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by One Click Coming Soon
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7714.47 ▲0.261.74 ▼0.1839.47 ▼6.49
Dashboard /wp-admin2,229 ▲264.87 ▼0.01114.26 ▲9.0643.66 ▲1.63
Posts /wp-admin/edit.php2,111 ▲112.02 ▲0.0041.47 ▲4.9336.08 ▼2.70
Add New Post /wp-admin/post-new.php1,533 ▼717.49 ▼5.79640.41 ▼49.6049.55 ▼5.86
Media Library /wp-admin/upload.php1,405 ▲54.23 ▼0.07100.03 ▼17.5039.85 ▼9.58
One Click Coming Soon /wp-admin/options-general.php?page=one_click_coming_soon8572.0223.6326.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/one-click-coming-soon/index.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/one-click-coming-soon/settings-form.php:3

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Requires at least: Invalid version format
Please take inspiration from this readme.txt

one-click-coming-soon/index.php 92% from 13 tests

The main PHP file in "One Click Coming Soon" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("one-click-coming-soon.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin320 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34270314
JavaScript1005
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.27
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods218.18%
▷ Public methods11100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin