10% logicrays-easy-coming-soon-page

Code Review | Logicrays Easy Coming soon page

WordPress plugin Logicrays Easy Coming soon page scored 10% from 54 tests.

About plugin

  • Plugin page: logicrays-easy-co...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 19, 2018
  • Latest release: Mar 19, 2018
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: logicrays (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 524 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/logicrays-easy-coming-soon-page/lecsp-easy-coming-soon.php+37
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.89MB] [CPU: ▼55.09ms] Passed 4 tests

Analyzing server-side resources used by Logicrays Easy Coming soon page
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.365.40 ▼36.47
Dashboard /wp-admin2.12 ▼1.197.59 ▼43.53
Posts /wp-admin/edit.php2.12 ▼1.246.87 ▼45.13
Add New Post /wp-admin/post-new.php2.12 ▼3.777.17 ▼95.21
Media Library /wp-admin/upload.php2.12 ▼1.118.68 ▼25.20

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Logicrays Easy Coming soon page
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,974 ▲23915.05 ▲0.691.70 ▼0.1139.96 ▼5.80
Dashboard /wp-admin2,380 ▲1896.63 ▲1.57121.75 ▲17.9138.59 ▼7.34
Posts /wp-admin/edit.php2,289 ▲2003.55 ▲1.5252.87 ▲12.0132.81 ▼7.46
Add New Post /wp-admin/post-new.php1,702 ▲16922.67 ▼0.69640.83 ▲38.1731.70 ▼28.64
Media Library /wp-admin/upload.php1,425 ▲374.36 ▲0.1582.50 ▼16.9642.55 ▼1.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/logicrays-easy-coming-soon-page/lecsp-easy-coming-soon.php+37
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 3× 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/logicrays-easy-coming-soon-page/includes/class-lecsp.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/logicrays-easy-coming-soon-page/includes/lecsp-template.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/logicrays-easy-coming-soon-page/lecsp-easy-coming-soon.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Donate link: Invalid url: ""
  • Stable tag: Empty value
You can look at the official readme.txt

logicrays-easy-coming-soon-page/lecsp-easy-coming-soon.php 92% from 13 tests

This is the main PHP file of "Logicrays Easy Coming soon page" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("logicrays-easy-coming-soon-page.php" instead of "lecsp-easy-coming-soon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin360 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP31011316
JavaScript20827
CSS10017

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/linkd.png1.28KB1.31KB0.00%
images/insta.png11.53KB3.66KB▼ 68.24%
images/pin.png6.27KB2.82KB▼ 55.10%
images/gp.png1.58KB1.63KB0.00%
images/fb.png1.09KB1.12KB0.00%