Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.64MB] [CPU: ▲0.26ms] Passed 4 tests
Analyzing server-side resources used by Under Construction
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.61 | 45.11 ▲2.46 |
Dashboard /wp-admin | 3.96 ▲0.65 | 54.00 ▲3.30 |
Posts /wp-admin/edit.php | 4.04 ▲0.69 | 53.53 ▲2.52 |
Add New Post /wp-admin/post-new.php | 6.54 ▲0.65 | 94.15 ▼7.22 |
Media Library /wp-admin/upload.php | 3.86 ▲0.63 | 45.65 ▲10.94 |
UnderConstruction /wp-admin/options-general.php?page=ucp | 3.96 | 53.64 |
Server storage [IO: ▲7.72MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 202 new files
Database: no new tables, 8 new options
New WordPress options |
---|
ucp_meta |
db_upgraded |
can_compress_scripts |
ucp_pointers |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Under Construction
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲168 | 13.32 ▼0.99 | 1.58 ▼0.32 | 40.72 ▼3.93 |
Dashboard /wp-admin | 2,276 ▲85 | 5.08 ▲0.18 | 108.68 ▼5.48 | 86.88 ▲45.88 |
Posts /wp-admin/edit.php | 2,177 ▲88 | 2.33 ▲0.33 | 43.04 ▲0.33 | 40.05 ▲3.39 |
Add New Post /wp-admin/post-new.php | 1,564 ▲36 | 23.35 ▲5.15 | 695.23 ▲64.32 | 41.94 ▼8.18 |
Media Library /wp-admin/upload.php | 1,470 ▲82 | 4.37 ▲0.13 | 104.10 ▼0.86 | 83.87 ▲37.71 |
UnderConstruction /wp-admin/options-general.php?page=ucp | 7,577 | 8.43 | 241.60 | 280.05 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'UCP' not found in wp-content/plugins/under-construction-page/ucp-license.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: coming soon, landing page, offline page, launch page, under construction page...
under-construction-page/under-construction.php 92% from 13 tests
The principal PHP file in "Under Construction" v. 3.97 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("under-construction-page.php" instead of "under-construction.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin10,776 lines of code in 86 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 746 | 342 | 3,993 |
CSS | 41 | 585 | 208 | 3,699 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 5 | 118 | 51 | 413 |
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 code | 0.28 |
Average class complexity | 99.67 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 274.00 |
Average method complexity | 4.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 70 | 90.91% |
▷ Public methods | 77 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
82 PNG files occupy 4.69MB with 2.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/thumbnails/dark.png | 32.82KB | 10.77KB | ▼ 67.19% |
themes/puzzles/puzzles.png | 279.46KB | 116.29KB | ▼ 58.39% |
images/ucp_icon.png | 0.80KB | 0.89KB | 0.00% |
themes/people/people.png | 131.50KB | 44.69KB | ▼ 66.02% |
images/thumbnails/rocket_2.png | 22.45KB | 7.94KB | ▼ 64.62% |