94% mobile-navigation-menu

Code Review | Mobile Navigation Menu

WordPress plugin Mobile Navigation Menu scored 94% from 54 tests.

About plugin

  • Plugin page: mobile-navigation...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 5.8.1
  • First release: Jun 29, 2016
  • Latest release: Feb 2, 2017
  • Number of updates: 6
  • Update frequency: every 36.3 days
  • Top authors: esstat17 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active / 5,628 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼146.88ms] Passed 4 tests

This is a short check of server-side resources used by Mobile Navigation Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0342.21 ▲5.47
Dashboard /wp-admin3.13 ▲0.0745.85 ▼2.28
Posts /wp-admin/edit.php3.24 ▲0.1354.14 ▲5.08
Add New Post /wp-admin/post-new.php5.47 ▲0.0392.07 ▼592.43
Media Library /wp-admin/upload.php3.05 ▲0.0537.10 ▲2.13
Mobile Navigation Menu /wp-admin/tools.php?page=mnm-menu-page3.0540.18

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Mobile Navigation Menu: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,115 ▲51918.10 ▲2.2114.72 ▲4.6855.02 ▲3.56
Dashboard /wp-admin3,198 ▲2678.11 ▲2.17181.00 ▲24.79120.92 ▼5.47
Posts /wp-admin/edit.php2,996 ▲2574.38 ▲1.6887.07 ▲16.7391.24 ▼4.93
Add New Post /wp-admin/post-new.php1,711 ▲2815.82 ▼0.34401.56 ▼2.49133.31 ▲16.13
Media Library /wp-admin/upload.php1,842 ▲324.93 ▼0.08121.18 ▼28.90130.46 ▲5.10
Mobile Navigation Menu /wp-admin/tools.php?page=mnm-menu-page2,6024.62129.97127.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobile-navigation-menu/includes/wp-head-footer.php:65

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
6 plugin tags: mobile, rwd, navbar, navigation, responsive...

mobile-navigation-menu/mobile-navigation-menu.php 92% from 13 tests

The entry point to "Mobile Navigation Menu" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected4,690 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS412322,759
JavaScript2225104867
SVG100685
PHP667227379

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods350.00%
▷ Protected methods00.00%
▷ Private methods350.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin