78% catch-under-construction

Code Review | Catch Under Construction

WordPress plugin Catch Under Construction scored78%from 54 tests.

About plugin

  • Plugin page: catch-under-const...
  • Plugin version: 1.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: May 6, 2019
  • Latest release: Nov 15, 2023
  • Number of updates: 19
  • Update frequency: every 87.2 days
  • Top authors: catchthemes (94.74%)maheshmaharjan (10.53%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /3,374 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▲1.50ms] Passed 4 tests

A check of server-side resources used by Catch Under Construction
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1943.11 ▲2.09
Dashboard /wp-admin3.49 ▲0.1953.69 ▲3.95
Posts /wp-admin/edit.php3.60 ▲0.2556.07 ▲4.89
Add New Post /wp-admin/post-new.php6.07 ▲0.1891.93 ▼4.92
Media Library /wp-admin/upload.php3.41 ▲0.1842.07 ▲5.30

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Catch Under Construction
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲14513.36 ▼0.898.48 ▲6.3838.42 ▼5.11
Dashboard /wp-admin2,217 ▲375.64 ▲0.0092.96 ▼7.6239.64 ▼5.45
Posts /wp-admin/edit.php2,125 ▲252.01 ▼0.0140.19 ▲2.9835.87 ▼0.92
Add New Post /wp-admin/post-new.php1,557 ▲3123.08 ▼0.42692.90 ▼9.8349.55 ▼6.34
Media Library /wp-admin/upload.php1,428 ▲284.16 ▲0.02102.59 ▼8.0447.32 ▼1.76

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/catch-under-construction/public/partials/catch-under-construction-public-display.php
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-under-construction/admin/partials/social.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/catch-under-construction/includes/CatchThemesThemePlugin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-under-construction/admin/partials/sidebar.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/catch-under-construction/catch-under-construction.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/catch-under-construction/includes/ctp-tabs-removal.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-under-construction/admin/partials/catch-under-construction-admin-display.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function catch_under_construction_get_options() in wp-content/plugins/catch-under-construction/public/partials/construction-display.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/catch-under-construction/admin/partials/footer.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-under-construction/admin/partials/dashboard.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-under-construction/admin/partials/contact.php:7

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: The official readme.txt is a good inspiration

catch-under-construction/catch-under-construction.php 92% from 13 tests

The entry point to "Catch Under Construction" version 1.4.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 199 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,657 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP213196571,521
CSS418932987
JavaScript43041149

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity13.38
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods41
▷ Static methods24.88%
▷ Public methods3687.80%
▷ Protected methods00.00%
▷ Private methods512.20%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/free-plugin-246x116.png8.01KB3.81KB▼ 52.42%
public/partials/images/logo.png2.94KB2.22KB▼ 24.51%
admin/images/premium-plugin-246x116.png9.01KB4.16KB▼ 53.83%