Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼143.56ms] Passed 4 tests
Analyzing server-side resources used by WP Tidy Admin Bar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 39.09 ▲18.13 |
Dashboard /wp-admin | 3.08 ▲0.03 | 45.83 ▼5.38 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 45.62 ▲4.48 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 95.30 ▼568.82 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 35.07 ▼4.53 |
Tidy Admin Bar /wp-admin/options-general.php?page=wptidyadminbaroptions | 2.99 | 33.92 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WP Tidy Admin Bar: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.92 ▼0.02 | 9.60 ▲0.12 | 49.67 ▼1.56 |
Dashboard /wp-admin | 2,975 ▲44 | 5.91 ▼0.05 | 140.86 ▼21.97 | 111.73 ▼6.99 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▼0.00 | 63.65 ▼3.88 | 81.99 ▼10.08 |
Add New Post /wp-admin/post-new.php | 1,879 ▲298 | 19.13 ▼1.11 | 369.00 ▼89.54 | 108.51 ▼11.53 |
Media Library /wp-admin/upload.php | 1,812 ▼1 | 5.02 ▼0.04 | 140.35 ▼7.28 | 118.93 ▼0.78 |
Tidy Admin Bar /wp-admin/options-general.php?page=wptidyadminbaroptions | 1,188 | 2.08 | 55.91 | 74.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
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
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-tidy-admin-bar/wp-tidy-admin-bar.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-tidy-admin-bar/wp-tidy-admin-bar-options.php:28
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: tinymce
wp-tidy-admin-bar/wp-tidy-admin-bar.php Passed 13 tests
The main file in "WP Tidy Admin Bar" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
73 characters long description:
Simple options to tidy up the uncessary clutter in the WordPres Admin Bar
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
No dangerous file extensions were detected149 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 23 | 68 | 95 |
Markdown | 1 | 18 | 0 | 54 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin