84% member-private-navbar

Code Review | Wordpress Member Navbar

WordPress plugin Wordpress Member Navbar scored 84% from 54 tests.

About plugin

  • Plugin page: member-private-na...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2015
  • Latest release: Mar 15, 2015
  • Number of updates: 7
  • Update frequency: every 3.9 days
  • Top authors: stanton119 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active / 1,996 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.02ms] Passed 4 tests

Analyzing server-side resources used by Wordpress Member Navbar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.16 ▼3.11
Dashboard /wp-admin3.31 ▲0.0047.34 ▼0.25
Posts /wp-admin/edit.php3.36 ▲0.0050.31 ▲4.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.85 ▼12.10
Media Library /wp-admin/upload.php3.23 ▲0.0038.05 ▲3.37

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Wordpress Member Navbar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.63 ▼1.101.96 ▲0.2441.93 ▲1.10
Dashboard /wp-admin2,206 ▲184.86 ▼0.01105.58 ▼11.0740.20 ▲3.37
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0439.68 ▲5.4137.12 ▲0.48
Add New Post /wp-admin/post-new.php1,542 ▲818.16 ▼5.06601.31 ▲7.4457.69 ▲10.95
Media Library /wp-admin/upload.php1,385 ▼34.23 ▲0.0495.19 ▼6.2841.15 ▼2.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/member-private-navbar/private-menu.php:12

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: member, private, navbar

member-private-navbar/private-menu.php 92% from 13 tests

"Wordpress Member Navbar" version 0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("member-private-navbar.php" instead of "private-menu.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected47 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown120034
PHP141113

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code1.00
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%
Functions1
▷ Named functions1100.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