84% ultimate-under-construction

Code Review | Ultimate Under Construction

WordPress plugin Ultimate Under Construction scored84%from 54 tests.

About plugin

  • Plugin page: ultimate-under-co...
  • Plugin version: 1.9.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.2
  • WordPress version: 6.3.1
  • First release: Feb 13, 2014
  • Latest release: Oct 27, 2023
  • Number of updates: 34
  • Update frequency: every 104.2 days
  • Top authors: Morrowmedia (79.41%)HappyKite (23.53%)

Code review

54 tests

User reviews

15 reviews

Install metrics

3,000+ active /129,741 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.05MB] [CPU: ▼7.22ms] Passed 4 tests

Analyzing server-side resources used by Ultimate Under Construction
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.19 ▼0.93
Dashboard /wp-admin3.37 ▲0.0347.17 ▼9.81
Posts /wp-admin/edit.php3.43 ▲0.0643.69 ▼1.13
Add New Post /wp-admin/post-new.php5.96 ▲0.0680.83 ▼17.00
Media Library /wp-admin/upload.php3.30 ▲0.0640.49 ▲5.21
Ultimate Under Construction /wp-admin/options-general.php?page=uuc-options3.2730.63

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate Under Construction
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6414.65 ▲0.031.70 ▲0.0444.74 ▲2.72
Dashboard /wp-admin2,212 ▲325.77 ▲0.1483.97 ▼1.4733.79 ▼8.16
Posts /wp-admin/edit.php2,119 ▲192.27 ▲0.3136.04 ▼4.5829.51 ▼10.30
Add New Post /wp-admin/post-new.php1,538 ▲1223.28 ▲0.19680.02 ▲32.1953.96 ▼7.71
Media Library /wp-admin/upload.php1,414 ▲144.50 ▲0.3093.64 ▼14.7441.01 ▼6.82
Ultimate Under Construction /wp-admin/options-general.php?page=uuc-options1,1562.3440.8621.64

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 4× 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/ultimate-under-construction/includes/uucadmin.php:178
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ultimate-under-construction/includes/display-functions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-under-construction/ultimate-under-construction.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-under-construction/includes/scripts.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: coming soon, holding, construction, holding page, private...

ultimate-under-construction/ultimate-under-construction.php 85% from 13 tests

The main PHP file in "Ultimate Under Construction" ver. 1.9.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Description: The description should be shorter than 140 characters (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,511 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript7358561861
CSS2887347
PHP46546303

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.57
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

PNG files should be compressed to save space and minimize bandwidth usage
8 compressed PNG files occupy 0.23MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/wavegrid.png1.55KB1.57KB0.00%
includes/images/darkbind.png19.38KB21.05KB0.00%
includes/images/flatcardboard.png32.11KB35.10KB0.00%
includes/images/greywashwall.png46.32KB48.62KB0.00%
includes/images/pooltable.png40.96KB43.30KB0.00%