84% simple-under-construction

Code Review | Simple Under Construction

WordPress plugin Simple Under Construction scored 84% from 54 tests.

About plugin

  • Plugin page: simple-under-cons...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.4
  • WordPress version: 6.3.1
  • First release: Aug 11, 2015
  • Latest release: Aug 11, 2015
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: shrinitech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,955 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Simple Under Construction
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.74 ▼2.14
Dashboard /wp-admin3.37 ▲0.0745.38 ▼4.96
Posts /wp-admin/edit.php3.48 ▲0.1346.27 ▼0.71
Add New Post /wp-admin/post-new.php5.95 ▲0.0688.45 ▼5.11
Media Library /wp-admin/upload.php3.29 ▲0.0634.50 ▼1.45
Simple Under Construction /wp-admin/options-general.php?page=simple-under-construction-settings3.2631.07

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Simple Under Construction
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7413.28 ▼1.091.79 ▼0.3243.04 ▼2.64
Dashboard /wp-admin2,207 ▲225.83 ▲0.8797.92 ▼21.5636.69 ▼9.19
Posts /wp-admin/edit.php2,096 ▲102.06 ▲0.0539.22 ▲3.8834.41 ▲1.14
Add New Post /wp-admin/post-new.php1,536 ▲1723.30 ▼0.21669.13 ▼11.1062.30 ▲3.72
Media Library /wp-admin/upload.php1,389 ▼24.23 ▼0.0192.95 ▼17.4543.73 ▼4.03
Simple Under Construction /wp-admin/options-general.php?page=simple-under-construction-settings9762.0424.5024.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • simple_under_construction_settings
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 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 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-under-construction/under-construction.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

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 need to be fixed: You can take inspiration from this readme.txt

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

The main PHP script in "Simple Under Construction" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-under-construction.php" instead of "under-construction.php")

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
There were no executable files found in this plugin546 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP29321286
CSS2133163
SVG10097

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity11.50
▷ Minimum class complexity8.00
▷ Maximum class complexity15.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin