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.02MB] [CPU: ▼2.26ms] Passed 4 tests
Analyzing server-side resources used by Simplest Under Construction
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.66 ▼5.55 |
Dashboard /wp-admin | 3.34 ▼0.01 | 53.95 ▼12.08 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 57.33 ▲8.24 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 103.36 ▲2.55 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 41.00 ▲6.03 |
Under Construction /wp-admin/options-general.php?page=simplest-under-construction | 3.23 | 35.34 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Simplest Under Construction: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.25 ▼0.10 | 1.94 ▼0.23 | 41.07 ▲1.29 |
Dashboard /wp-admin | 2,202 ▲22 | 5.64 ▼0.01 | 90.70 ▼0.69 | 38.12 ▼1.25 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.06 | 39.22 ▲0.25 | 35.80 ▼3.44 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.28 ▲0.23 | 688.23 ▼14.20 | 53.73 ▲1.28 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.39 ▲0.22 | 105.40 ▼1.65 | 48.80 ▲1.98 |
Under Construction /wp-admin/options-general.php?page=simplest-under-construction | 922 | 1.65 | 31.06 | 26.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 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 0% 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
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/simplest-under-construction/simplest-under-construction.php
- > /wp-content/plugins/simplest-under-construction/suc_files/under_construction.php
- > /wp-content/plugins/simplest-under-construction/suc_files/under_construction_admin-public_functions.php
- > /wp-content/plugins/simplest-under-construction/suc_files/under_construction_public.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/simplest-under-construction/suc_files/under_construction_default_page.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 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
4 plugin tags: under construction, coming soon, maintenance mode, maintenance
simplest-under-construction/simplest-under-construction.php Passed 13 tests
"Simplest Under Construction" version 0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
110 characters long description:
This is the simplest plugin to restrict a Wordpress site to the public. You can allow them by IP or user role.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected343 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 150 | 63 | 340 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.67 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dev_icon.png | 1.65KB | 0.89KB | ▼ 46.30% |