84% tl-coming-soon

Code Review | TL Coming Soon - Maintenance Mode & Under Construction

WordPress plugin TL Coming Soon - Maintenance Mode & Under Construction scored84%from 54 tests.

About plugin

  • Plugin page: tl-coming-soon
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Oct 28, 2020
  • Latest release: Apr 22, 2021
  • Number of updates: 24
  • Update frequency: every 7.4 days
  • Top authors: themeluxury (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /9,665 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.54MB] [CPU: ▲3.50ms] Passed 4 tests

An overview of server-side resources used by TL Coming Soon - Maintenance Mode & Under Construction
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.5344.24 ▲3.75
Dashboard /wp-admin3.89 ▲0.5855.55 ▲9.66
Posts /wp-admin/edit.php3.94 ▲0.5849.75 ▲3.53
Add New Post /wp-admin/post-new.php6.43 ▲0.5489.92 ▲0.79
Media Library /wp-admin/upload.php3.75 ▲0.5244.05 ▲5.94

Server storage [IO: ▲9.58MB] [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: 138 new files
Database: no new tables, 14 new options
New WordPress options
tlcs_social_options
tlcs_general_options
tlcs_translation_options
tlcs_support_options
subscribe-nonce
toggle-nonce
can_compress_scripts
widget_recent-comments
tlcs_design_options
tlcs_template_options
...

Browser metrics Passed 4 tests

Checking browser requirements for TL Coming Soon - Maintenance Mode & Under Construction
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲13913.30 ▼1.072.04 ▲0.0944.09 ▲2.80
Dashboard /wp-admin2,265 ▲804.86 ▼0.03111.20 ▲11.2345.99 ▲4.68
Posts /wp-admin/edit.php2,148 ▲592.08 ▲0.0639.95 ▲1.9138.16 ▲4.68
Add New Post /wp-admin/post-new.php1,563 ▲3023.43 ▲0.14689.25 ▼212.5159.58 ▼36.87
Media Library /wp-admin/upload.php1,444 ▲564.23 ▲0.00123.11 ▲9.6552.07 ▲4.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 14 options in the database
    • widget_theysaidso_widget
    • tlcs_social_options
    • tlcs_translation_options
    • widget_recent-comments
    • tlcs_template_options
    • theysaidso_admin_options
    • widget_recent-posts
    • subscribe-nonce
    • can_compress_scripts
    • tlcs_general_options
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tl-coming-soon/functions.php:10

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: launch page, landing page, coming soon, under construction, maintenance mode...

tl-coming-soon/tl-coming-soon.php Passed 13 tests

This is the main PHP file of "TL Coming Soon - Maintenance Mode & Under Construction" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
74 characters long description:
Coming Soon, Maintenance Mode and Under Construction plugin for WordPress.

Code Analysis 97% from 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 plugin24,508 lines of code in 84 files:
LanguageFilesBlank linesComment linesLines of code
SVG40129,456
CSS301,0326767,542
PHP261,5072,5274,478
JavaScript234751812,977
Markdown118055

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
It is recommended to fix the following
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 222)
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity22.38
▷ Minimum class complexity1.00
▷ Maximum class complexity222.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity222.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes29
▷ Abstract classes00.00%
▷ Concrete classes29100.00%
▷ Final classes00.00%
Methods252
▷ Static methods51.98%
▷ Public methods23191.67%
▷ Protected methods00.00%
▷ Private methods218.33%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants27
▷ Global constants2696.30%
▷ Class constants13.70%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/tl-logo.png2.02KB1.02KB▼ 49.61%
public/assets/images/logo.png3.60KB1.73KB▼ 51.94%