89% really-simple-under-construction

Code Review | Really Simple Under Construction Page

WordPress plugin Really Simple Under Construction Page scored89%from 54 tests.

About plugin

  • Plugin page: really-simple-und...
  • Plugin version: 1.4.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: May 10, 2018
  • Latest release: Aug 3, 2023
  • Number of updates: 29
  • Update frequency: every 66.0 days
  • Top authors: jonas.hjalmarsson (65.52%)web111se (37.93%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /3,367 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.60ms] Passed 4 tests

An overview of server-side resources used by Really Simple Under Construction Page
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.45 ▲0.95
Dashboard /wp-admin3.36 ▲0.0643.52 ▼4.77
Posts /wp-admin/edit.php3.47 ▲0.1246.28 ▼3.65
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.86 ▼18.93
Media Library /wp-admin/upload.php3.28 ▲0.0534.77 ▲2.62
Really Simple Under Construction /wp-admin/options-general.php?page=rsuc-submenu-page3.2531.50

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Really Simple Under Construction Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.22 ▼1.152.05 ▲0.1746.91 ▲3.52
Dashboard /wp-admin2,210 ▲195.82 ▼0.1897.71 ▼5.7239.36 ▼6.45
Posts /wp-admin/edit.php2,090 ▲12.01 ▼0.0533.76 ▼6.2835.36 ▼0.52
Add New Post /wp-admin/post-new.php1,539 ▲123.36 ▲0.07637.36 ▲8.8649.45 ▼20.77
Media Library /wp-admin/upload.php1,395 ▲74.22 ▼0.0193.75 ▼3.3343.02 ▼2.94
Really Simple Under Construction /wp-admin/options-general.php?page=rsuc-submenu-page8742.1822.3625.30

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 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
8 plugin tags: temporary site, secret key, hide page, really simple, construction...

really-simple-under-construction/really-simple-under-construction.php 85% from 13 tests

Analyzing the main PHP file in "Really Simple Under Construction Page" version 1.4.6
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 258 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected282 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13641172
PO File22222110

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin