84% network-menu-fallback

Code Review | Network Menu Fallback

WordPress plugin Network Menu Fallback scored84%from 54 tests.

About plugin

  • Plugin page: network-menu-fall...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 6.3.1
  • First release: Aug 1, 2016
  • Latest release: Aug 1, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: rfair404 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /575 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.76ms] Passed 4 tests

Analyzing server-side resources used by Network Menu Fallback
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.35 ▼11.00
Dashboard /wp-admin3.31 ▲0.0145.09 ▼7.15
Posts /wp-admin/edit.php3.36 ▲0.0147.83 ▼1.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.06 ▼11.83
Media Library /wp-admin/upload.php3.23 ▲0.0038.34 ▲3.93

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Network Menu Fallback
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.154.82 ▲3.0837.52 ▼5.35
Dashboard /wp-admin2,206 ▲184.86 ▼1.02103.70 ▼21.9437.07 ▼10.80
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0235.81 ▼4.8533.46 ▼0.03
Add New Post /wp-admin/post-new.php1,541 ▲2723.26 ▲5.86663.39 ▲48.2450.70 ▲9.43
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0998.75 ▼8.2345.76 ▲0.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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 items
  • 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/network-menu-fallback/network-menu-fallback.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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: menu, multisite

network-menu-fallback/network-menu-fallback.php Passed 13 tests

The primary PHP file in "Network Menu Fallback" version 0.1 is used by WordPress to initiate all plugin functionality
66 characters long description:
Uses the parent site's menu as the fallback for non-existant menus

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 detected13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12613

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin