Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.54MB] [CPU: ▲3.50ms] Passed 4 tests
An overview of server-side resources used by TL Coming Soon - Maintenance Mode & Under Construction
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.53 | 44.24 ▲3.75 |
Dashboard /wp-admin | 3.89 ▲0.58 | 55.55 ▲9.66 |
Posts /wp-admin/edit.php | 3.94 ▲0.58 | 49.75 ▲3.53 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.54 | 89.92 ▲0.79 |
Media Library /wp-admin/upload.php | 3.75 ▲0.52 | 44.05 ▲5.94 |
Server storage [IO: ▲9.58MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 138 new files
Database: no new tables, 14 new options
New WordPress options |
---|
tlcs_social_options |
tlcs_general_options |
tlcs_translation_options |
tlcs_support_options |
subscribe-nonce |
toggle-nonce |
can_compress_scripts |
widget_recent-comments |
tlcs_design_options |
tlcs_template_options |
... |
Browser metrics Passed 4 tests
Checking browser requirements for TL Coming Soon - Maintenance Mode & Under Construction
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲139 | 13.30 ▼1.07 | 2.04 ▲0.09 | 44.09 ▲2.80 |
Dashboard /wp-admin | 2,265 ▲80 | 4.86 ▼0.03 | 111.20 ▲11.23 | 45.99 ▲4.68 |
Posts /wp-admin/edit.php | 2,148 ▲59 | 2.08 ▲0.06 | 39.95 ▲1.91 | 38.16 ▲4.68 |
Add New Post /wp-admin/post-new.php | 1,563 ▲30 | 23.43 ▲0.14 | 689.25 ▼212.51 | 59.58 ▼36.87 |
Media Library /wp-admin/upload.php | 1,444 ▲56 | 4.23 ▲0.00 | 123.11 ▲9.65 | 52.07 ▲4.74 |
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
- This plugin does not fully uninstall, leaving 14 options in the database
- widget_theysaidso_widget
- tlcs_social_options
- tlcs_translation_options
- widget_recent-comments
- tlcs_template_options
- theysaidso_admin_options
- widget_recent-posts
- subscribe-nonce
- can_compress_scripts
- tlcs_general_options
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tl-coming-soon/functions.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 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
6 plugin tags: launch page, landing page, coming soon, under construction, maintenance mode...
tl-coming-soon/tl-coming-soon.php Passed 13 tests
This is the main PHP file of "TL Coming Soon - Maintenance Mode & Under Construction" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
74 characters long description:
Coming Soon, Maintenance Mode and Under Construction plugin for WordPress.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin24,508 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 12 | 9,456 |
CSS | 30 | 1,032 | 676 | 7,542 |
PHP | 26 | 1,507 | 2,527 | 4,478 |
JavaScript | 23 | 475 | 181 | 2,977 |
Markdown | 1 | 18 | 0 | 55 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 222)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 22.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 222.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 222.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 252 | |
▷ Static methods | 5 | 1.98% |
▷ Public methods | 231 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 21 | 8.33% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 26 | 96.30% |
▷ Class constants | 1 | 3.70% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/tl-logo.png | 2.02KB | 1.02KB | ▼ 49.61% |
public/assets/images/logo.png | 3.60KB | 1.73KB | ▼ 51.94% |