Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.99ms] Passed 4 tests
Server-side resources used by Inactive Tab Messages
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 37.68 ▼10.74 |
Dashboard /wp-admin | 3.38 ▲0.07 | 55.89 ▲5.64 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 53.38 ▲5.44 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.33 ▼5.49 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.48 ▲2.85 |
Inactive Tab Messages /wp-admin/tools.php?page=inactive-tab-messages | 3.27 | 31.43 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
inactive-tab-messages |
Browser metrics Passed 4 tests
Checking browser requirements for Inactive Tab Messages
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.34 ▼0.21 | 1.85 ▲0.12 | 45.50 ▲1.40 |
Dashboard /wp-admin | 2,202 ▲28 | 5.62 ▼0.06 | 85.80 ▼7.19 | 37.70 ▼3.06 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▼0.05 | 36.13 ▼3.07 | 33.33 ▼5.94 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.10 ▼0.13 | 669.56 ▼15.50 | 57.25 ▼1.84 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.18 ▲0.05 | 97.02 ▼16.71 | 40.96 ▼10.70 |
Inactive Tab Messages /wp-admin/tools.php?page=inactive-tab-messages | 792 | 2.03 | 23.98 | 25.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- inactive-tab-messages
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/inactive-tab-message/admin/partials/inactive-tab-messages-admin-display.php:15
- > 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 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: inactive tab, tab
inactive-tab-message/inactive-tab-messages.php 85% from 13 tests
"Inactive Tab Messages" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("inactive-tab-message.php" instead of "inactive-tab-messages.php")
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
There were no executable files found in this plugin306 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 163 | 549 | 297 |
JavaScript | 1 | 3 | 0 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin