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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.99ms] Passed 4 tests
A check of server-side resources used by Live Admin Navigation Filter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.53 ▼9.31 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.06 ▼3.96 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.69 ▲2.58 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 89.67 ▲3.46 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.00 ▼1.27 |
Live Admin Nav Filter /wp-admin/options-general.php?page=lnf-options | 3.22 | 31.42 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
lnf-options |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Live Admin Navigation Filter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲102 | 13.70 ▼0.67 | 1.95 ▲0.03 | 39.08 ▼3.16 |
Dashboard /wp-admin | 2,226 ▲38 | 5.89 ▲0.04 | 99.03 ▼18.02 | 40.23 ▼1.98 |
Posts /wp-admin/edit.php | 2,118 ▲26 | 2.19 ▲0.18 | 41.32 ▲3.49 | 34.91 ▲0.37 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.35 ▲0.01 | 667.77 ▼2.91 | 52.26 ▼20.68 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.27 ▲0.04 | 99.28 ▼3.49 | 42.97 ▼2.09 |
Live Admin Nav Filter /wp-admin/options-general.php?page=lnf-options | 1,006 | 1.90 | 36.02 | 36.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- lnf-options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/live-admin-navigation-filter/plugin.php:23
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Example results on expanded menu item.), #2 (Multiple results.), #3 (The settings screen.)
- Donate link: Invalid url: "Through PayPal... remy[at]bach.me.uk"
live-admin-navigation-filter/plugin.php 92% from 13 tests
Analyzing the main PHP file in "Live Admin Navigation Filter" version 1.0.1
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("live-admin-navigation-filter.php" instead of "plugin.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
Everything looks great! No dangerous files found in this plugin449 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 61 | 38 | 236 |
JavaScript | 1 | 26 | 41 | 149 |
CSS | 1 | 5 | 2 | 64 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin