Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.03MB] [CPU: ▼327.18ms] Passed 4 tests
An overview of server-side resources used by Under Construction
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.41 ▲4.89 | 26.03 ▼24.92 |
Dashboard /wp-admin | 8.42 ▲5.01 | 26.73 ▼6.48 |
Posts /wp-admin/edit.php | 8.43 ▲4.78 | 23.83 ▼14.15 |
Add New Post /wp-admin/post-new.php | 8.42 ▲1.45 | 25.38 ▼1,260.67 |
Media Library /wp-admin/upload.php | 8.42 ▲5.12 | 23.19 ▼8.98 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.43 | 23.98 |
Server storage [IO: ▲5.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 183 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_active_plugins |
fs_debug_mode |
fs_accounts |
easyunderconstruction_global_notification |
fs_gdpr |
Browser metrics Passed 4 tests
Under Construction: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,850 ▲106 | 15.91 ▲0.13 | 6.51 ▲0.84 | 2.55 ▲0.30 |
Dashboard /wp-admin | 2,947 ▲93 | 6.07 ▼0.16 | 116.18 ▼18.53 | 169.62 ▲12.48 |
Posts /wp-admin/edit.php | 2,743 ▲49 | 3.26 ▲0.01 | 65.66 ▼3.95 | 157.22 ▲19.51 |
Add New Post /wp-admin/post-new.php | 1,708 ▼50 | 16.07 ▼6.00 | 417.80 ▼18.65 | 164.53 ▲9.65 |
Media Library /wp-admin/upload.php | 1,751 ▲53 | 5.68 ▲0.16 | 145.53 ▲2.22 | 202.83 ▲17.03 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,454 | 2.55 | 64.01 | 121.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+307
call_user_func_array() expects parameter 1 to be a valid callback, function 'easyunderConstructionInitTranslation' not found or invalid function name
- The uninstall procedure has failed, leaving 5 options in the database
- fs_debug_mode
- fs_accounts
- fs_active_plugins
- easyunderConstructionArchive
- fs_gdpr
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=freemius
- > Warning in wp-includes/class-wp-hook.php+307
call_user_func_array() expects parameter 1 to be a valid callback, function 'easyunderConstructionInitTranslation' not found or invalid function name
SRP 50% from 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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/easy-under-construction/services.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function get_template_directory() in wp-content/plugins/easy-under-construction/easyucOptions.php:114
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: coming soon, coming soon page, under construction, maintenance, under construction page
easy-under-construction/underConstruction.php 85% from 13 tests
The main PHP script in "Under Construction" version 4.0 is automatically included on every request by WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 155 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("easy-under-construction.php" instead of "underConstruction.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected32,867 lines of code in 132 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 114 | 7,252 | 16,124 | 32,171 |
JavaScript | 4 | 43 | 59 | 240 |
CSS | 12 | 2 | 0 | 215 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 88.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 2 | 4.35% |
▷ Concrete classes | 44 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 1,157 | |
▷ Static methods | 173 | 14.95% |
▷ Public methods | 817 | 70.61% |
▷ Protected methods | 15 | 1.30% |
▷ Private methods | 325 | 28.09% |
Functions | 104 | |
▷ Named functions | 104 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 124 | |
▷ Global constants | 99 | 79.84% |
▷ Class constants | 25 | 20.16% |
▷ Public constants | 25 | 100.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
10 PNG files occupy 2.08MB with 1.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon-256x256.png | 34.87KB | 9.33KB | ▼ 73.24% |
templates/images/thumb_three.png | 179.12KB | 60.68KB | ▼ 66.12% |
templates/images/ucthree.png | 188.44KB | 50.09KB | ▼ 73.42% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
templates/images/profile-min.png | 323.85KB | 329.75KB | 0.00% |