Benchmarks
Plugin footprint Passed 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: ▼289.59ms] Passed 4 tests
An overview of server-side resources used by Freelance Admin Hider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 61.55 ▲6.42 |
Dashboard /wp-admin | 3.46 ▲0.06 | 37.58 ▲1.40 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 43.94 ▲2.39 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 99.22 ▼1,163.10 |
Media Library /wp-admin/upload.php | 3.35 ▲0.05 | 29.16 ▲0.97 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Freelance Admin Hider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲48 | 15.89 ▲0.33 | 5.92 ▼0.04 | 2.47 ▲0.15 |
Dashboard /wp-admin | 2,892 ▲37 | 6.10 ▼0.04 | 118.28 ▼19.69 | 152.83 ▼9.65 |
Posts /wp-admin/edit.php | 2,691 ▼3 | 3.24 ▼0.00 | 63.02 ▼0.77 | 136.45 ▼4.57 |
Add New Post /wp-admin/post-new.php | 1,661 ▼112 | 16.41 ▼4.64 | 383.34 ▼85.43 | 155.40 ▲6.73 |
Media Library /wp-admin/upload.php | 1,695 ▼6 | 5.49 ▼0.06 | 149.75 ▲8.29 | 192.54 ▲10.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any 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
Even though everything seems fine, this is not 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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/freelance-admin-hider/freelance-admin-hider.php
- > /wp-content/plugins/freelance-admin-hider/functions.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: admin, tools
freelance-admin-hider/freelance-admin-hider.php Passed 13 tests
The main PHP script in "Freelance Admin Hider" version 0.2 is automatically included on every request by WordPress
38 characters long description:
Controls which admin menu item to show
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin225 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 38 | 61 | 225 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG images were found in this plugin