10% netgo-expandablecollapsible-menu

Code Review | Expandable/Collapsible Menu

WordPress plugin Expandable/Collapsible Menu scored10%from 54 tests.

About plugin

  • Plugin page: netgo-expandablec...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.6
  • WordPress version: 6.3.1
  • First release: Jul 28, 2015
  • Latest release: Aug 20, 2016
  • Number of updates: 21
  • Update frequency: every 18.6 days
  • Top authors: NetAttingo Technologies (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

500+ active /11,368 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/netgo-expandablecollapsible-menu/netgo-expandable-collapsible-menu.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; Netgo_Navigation has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼61.91ms] Passed 4 tests

An overview of server-side resources used by Expandable/Collapsible Menu
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.385.19 ▼42.14
Dashboard /wp-admin2.11 ▼1.206.86 ▼44.77
Posts /wp-admin/edit.php2.11 ▼1.257.04 ▼50.24
Add New Post /wp-admin/post-new.php2.11 ▼3.786.77 ▼110.50
Media Library /wp-admin/upload.php2.11 ▼1.135.78 ▼29.80

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_netgo_navigation
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Expandable/Collapsible Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.45 ▼0.729.68 ▲7.8844.01 ▼2.36
Dashboard /wp-admin2,198 ▲185.60 ▼0.0487.68 ▼14.7240.00 ▼5.54
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0335.70 ▼7.2132.83 ▼4.38
Add New Post /wp-admin/post-new.php1,531 ▲323.16 ▲0.18651.56 ▼32.7669.39 ▲18.61
Media Library /wp-admin/upload.php1,400 ▼04.16 ▲0.06104.32 ▼6.7743.63 ▼3.87

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/netgo-expandablecollapsible-menu/netgo-expandable-collapsible-menu.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; Netgo_Navigation has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_netgo_navigation
    • widget_recent-comments
    • 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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/netgo-expandablecollapsible-menu/netgo-expandable-collapsible-menu.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (NetGo Expandable/Collapsible Navigation widget configuration.), #2 (It's your menu in sidebar in front end)
Please take inspiration from this readme.txt

netgo-expandablecollapsible-menu/netgo-expandable-collapsible-menu.php 92% from 13 tests

"Expandable/Collapsible Menu" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("netgo-expandablecollapsible-menu.php" instead of "netgo-expandable-collapsible-menu.php")

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
Everything looks great! No dangerous files found in this plugin190 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15624108
CSS113041
JavaScript1221641

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png23.37KB7.53KB▼ 67.79%
screenshot-2.png3.78KB2.56KB▼ 32.33%