89% sooon-page-site-under-construction

Code Review | Sooon.page - Site Under Construction

WordPress plugin Sooon.page - Site Under Construction scored89%from 54 tests.

About plugin

  • Plugin page: sooon-page-site-u...
  • Plugin version: 0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Sep 20, 2023
  • Latest release: Sep 21, 2023
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: sooonpage (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /67 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.08MB] [CPU: ▼3.34ms] Passed 4 tests

This is a short check of server-side resources used by Sooon.page - Site Under Construction
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0842.94 ▲2.25
Dashboard /wp-admin3.38 ▲0.0848.72 ▼0.27
Posts /wp-admin/edit.php3.43 ▲0.0748.14 ▲2.79
Add New Post /wp-admin/post-new.php5.97 ▲0.0785.60 ▼16.55
Media Library /wp-admin/upload.php3.31 ▲0.0735.09 ▲1.23
Sooon.page /wp-admin/options-general.php?page=soon-site-under-construction3.2732.34

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Sooon.page - Site Under Construction
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.17 ▼1.091.87 ▲0.1343.25 ▲0.07
Dashboard /wp-admin2,206 ▲186.04 ▲0.14100.23 ▼12.9839.66 ▼7.69
Posts /wp-admin/edit.php2,095 ▲62.00 ▼0.0335.73 ▼4.1433.20 ▲0.06
Add New Post /wp-admin/post-new.php1,519 ▼023.17 ▼0.12611.97 ▼72.8353.31 ▼9.30
Media Library /wp-admin/upload.php1,397 ▲64.23 ▲0.02109.45 ▲4.5145.78 ▲0.71
Sooon.page /wp-admin/options-general.php?page=soon-site-under-construction1,0082.0526.2155.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: coming soon, under construction, landing page

sooon-page-site-under-construction/sooon_site_under_construction.php 85% from 13 tests

The entry point to "Sooon.page - Site Under Construction" version 0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sooon-page-site-under-construction.php" instead of "sooon_site_under_construction.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

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
Good job! No executable or dangerous file extensions detected773 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PO File38187319
PHP64358283
CSS1292168
SVG1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Constants2
▷ Global constants2100.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
4 PNG files occupy 0.23MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png230.60KB71.55KB▼ 68.97%
assets/icon-256x256.png3.92KB1.94KB▼ 50.36%
assets/icon-128x128.png1.86KB1.00KB▼ 46.12%
assets/brand/logo_sooon_240.png3.62KB1.82KB▼ 49.70%