94% admin-menu-filter

Code Review | Admin Menu Filter

WordPress plugin Admin Menu Filter scored 94% from 54 tests.

About plugin

  • Plugin page: admin-menu-filter
  • Plugin version: 0.2.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 5.9.2
  • First release: Nov 11, 2019
  • Latest release: Dec 12, 2020
  • Number of updates: 11
  • Update frequency: every 36.2 days
  • Top authors: alejandro.moreno.mvd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 418 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼318.25ms] Passed 4 tests

Server-side resources used by Admin Menu Filter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0163.19 ▲11.31
Dashboard /wp-admin3.41 ▲0.0136.15 ▼2.04
Posts /wp-admin/edit.php3.65 ▲0.0139.41 ▼22.14
Add New Post /wp-admin/post-new.php6.88 ▼0.0995.41 ▼1,251.67
Media Library /wp-admin/upload.php3.30 ▲0.0026.89 ▲2.84

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Admin Menu Filter
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,820 ▲9815.80 ▼0.196.38 ▲0.863.06 ▲0.71
Dashboard /wp-admin2,896 ▲386.17 ▲0.01118.12 ▼11.05159.31 ▼3.46
Posts /wp-admin/edit.php2,695 ▲43.35 ▲0.11101.90 ▲37.98144.39 ▼4.59
Add New Post /wp-admin/post-new.php1,725 ▲6421.24 ▲5.67440.33 ▲13.11200.36 ▼17.20
Media Library /wp-admin/upload.php1,699 ▲45.52 ▼0.00143.27 ▲14.23192.86 ▲11.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/admin-menu-filter/admin-menu-filter.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: menu, admin

admin-menu-filter/admin-menu-filter.php Passed 13 tests

This is the main PHP file of "Admin Menu Filter" version 0.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
54 characters long description:
Add filter functionallity on the left menu in WP Admin

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
Success! There were no dangerous files found in this plugin84 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP119984

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin