78% under-construction-light

Code Review | Under Construction Light

WordPress plugin Under Construction Light scored 78% from 54 tests.

About plugin

  • Plugin page: under-constructio...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Apr 9, 2022
  • Latest release: Aug 9, 2023
  • Number of updates: 6
  • Update frequency: every 81.2 days
  • Top authors: sauravhny (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 8,232 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.26ms] Passed 4 tests

Analyzing server-side resources used by Under Construction Light
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0231.83 ▼10.92
Dashboard /wp-admin3.35 ▲0.0449.39 ▲2.75
Posts /wp-admin/edit.php3.47 ▲0.1152.55 ▲6.47
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.61 ▼10.08
Media Library /wp-admin/upload.php3.25 ▲0.0234.89 ▲1.22
Under Construction /wp-admin/options-general.php?page=ucl_options3.2535.15

Server storage [IO: ▲0.01MB] [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: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Under Construction Light
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲20614.87 ▲0.091.77 ▼0.2542.07 ▼7.92
Dashboard /wp-admin2,350 ▲1656.45 ▲1.52134.31 ▲32.4339.41 ▼5.42
Posts /wp-admin/edit.php2,253 ▲1643.32 ▲1.2949.02 ▲12.3932.85 ▲0.20
Add New Post /wp-admin/post-new.php1,523 ▲923.30 ▲5.72640.99 ▲29.0930.22 ▼24.35
Media Library /wp-admin/upload.php1,392 ▲74.13 ▼0.1080.94 ▼60.6941.31 ▼18.34
Under Construction /wp-admin/options-general.php?page=ucl_options1,0093.0944.6872.99

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
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/under-construction-light/template.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/under-construction-light/index.php:29

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=ucl_options
    • > Network (severe)
    wp-content/plugins/under-construction-light/assets/images/buy-coffee.gif - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: website, construction, comming, soon, under...

under-construction-light/index.php 85% from 13 tests

The main file in "Under Construction Light" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: Name the main plugin file the same as the plugin slug ("under-construction-light.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected183 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP21928108
CSS10060
JavaScript10515

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin