94% wp-featured-menus

Code Review | WP Featured Menus

WordPress plugin WP Featured Menus scored 94% from 54 tests.

About plugin

  • Plugin page: wp-featured-menus
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 5.8.1
  • First release: Jun 23, 2014
  • Latest release: Aug 21, 2015
  • Number of updates: 8
  • Update frequency: every 53.0 days
  • Top authors: topher1kenobe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,256 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by WP Featured Menus
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1336.67 ▲11.49
Dashboard /wp-admin3.08 ▲0.0255.02 ▲7.99
Posts /wp-admin/edit.php3.13 ▲0.0249.49 ▲1.12
Add New Post /wp-admin/post-new.php5.44 ▲0.0094.30 ▼570.40
Media Library /wp-admin/upload.php3.02 ▲0.0234.81 ▲3.01

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Featured Menus
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.81 ▲0.247.99 ▼1.3851.08 ▲4.06
Dashboard /wp-admin2,970 ▲365.90 ▼0.09144.08 ▼6.64111.58 ▼8.59
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0166.25 ▼6.0199.35 ▲13.35
Add New Post /wp-admin/post-new.php1,725 ▲14416.46 ▼3.94374.06 ▼17.07128.27 ▲14.66
Media Library /wp-admin/upload.php1,810 ▲35.00 ▼0.00169.77 ▲8.57120.07 ▼10.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-featured-menus/wp-featured-menus.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: menus, posts, featured, pages

wp-featured-menus/wp-featured-menus.php Passed 13 tests

The primary PHP file in "WP Featured Menus" version 1.3.1 is used by WordPress to initiate all plugin functionality
73 characters long description:
Provides a mechanism for associating a WordPress Menu with a Page or Post

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin73 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1358873

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods466.67%
▷ Protected methods00.00%
▷ Private methods233.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin