89% underconstruction-for-page

Code Review | Under Construction Per Page

WordPress plugin Under Construction Per Page scored89%from 54 tests.

About plugin

  • Plugin page: underconstruction...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.08.0-5.9.0
  • WordPress version: 6.3.1
  • First release: Mar 9, 2016
  • Latest release: Feb 9, 2022
  • Number of updates: 23
  • Update frequency: every 94.0 days
  • Top authors: hyvikk (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /5,786 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.29ms] Passed 4 tests

A check of server-side resources used by Under Construction Per Page
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.54 ▼5.35
Dashboard /wp-admin3.33 ▲0.0252.29 ▼3.31
Posts /wp-admin/edit.php3.38 ▲0.0244.30 ▼5.48
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.43 ▼15.03
Media Library /wp-admin/upload.php3.25 ▲0.0240.96 ▲5.63

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
un_theme1
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Under Construction Per Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.35 ▼0.301.68 ▼0.1743.23 ▲0.37
Dashboard /wp-admin2,208 ▲345.55 ▼0.1182.64 ▼8.7336.60 ▼4.14
Posts /wp-admin/edit.php2,116 ▲162.01 ▲0.0735.38 ▼3.9035.05 ▼4.85
Add New Post /wp-admin/post-new.php1,539 ▲1323.10 ▼0.04695.79 ▲40.5353.17 ▼2.45
Media Library /wp-admin/upload.php1,419 ▲194.16 ▼0.02111.35 ▲1.3651.61 ▲3.09

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • un_theme1
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

underconstruction-for-page/index.php 92% from 13 tests

Analyzing the main PHP file in "Under Construction Per Page" version 1.0.2
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("underconstruction-for-page.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected8,247 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS1686,570
JavaScript15771911,549
PHP25618128

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected