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.03MB] [CPU: ▼5.02ms] Passed 4 tests
This is a short check of server-side resources used by TukuToi Maintenance
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.55 ▼3.83 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.30 ▼2.99 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 49.31 ▼1.71 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 90.82 ▼11.56 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.21 ▲0.99 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for TukuToi Maintenance
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.17 ▼0.18 | 1.69 ▼0.10 | 45.04 ▲0.24 |
Dashboard /wp-admin | 2,192 ▲18 | 5.63 ▲0.10 | 91.35 ▲0.91 | 39.48 ▼1.98 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.98 ▼0.03 | 39.10 ▲1.70 | 35.50 ▼0.67 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.28 ▲0.27 | 673.52 ▲8.02 | 51.46 ▼4.21 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.35 ▲0.14 | 98.30 ▼7.48 | 43.50 ▲1.09 |
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
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/tkt-maintenance/public/partials/tkt-maintenance-public-display.php:19
- > 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 Passed 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
3 plugin tags: maintenance, coming soon, under development
tkt-maintenance/tkt-maintenance.php Passed 13 tests
"TukuToi Maintenance" version 2.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
72 characters long description:
Enable and Control a Custom Maintenance Mode for your WordPress Website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin551 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 220 | 534 | 454 |
JavaScript | 2 | 30 | 65 | 55 |
CSS | 1 | 0 | 4 | 42 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 75.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 24.39% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin