78% wps-menu-exporter

Code Review | WPS Menu Exporter

WordPress plugin WPS Menu Exporter scored 78% from 54 tests.

About plugin

  • Plugin page: wps-menu-exporter
  • Plugin version: 1.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.3
  • WordPress version: 6.3.1
  • First release: Apr 20, 2018
  • Latest release: Aug 24, 2023
  • Number of updates: 29
  • Update frequency: every 67.3 days
  • Top authors: NicolasKulka (100%)

Code review

54 tests

User reviews

36 reviews

Install metrics

10,000+ active / 130,359 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼4.31ms] Passed 4 tests

Server-side resources used by WPS Menu Exporter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1438.10 ▼6.12
Dashboard /wp-admin3.43 ▲0.1348.82 ▼1.35
Posts /wp-admin/edit.php3.55 ▲0.1947.21 ▲1.32
Add New Post /wp-admin/post-new.php6.02 ▲0.1391.39 ▼11.10
Media Library /wp-admin/upload.php3.36 ▲0.1335.15 ▲1.93

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WPS Menu Exporter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.091.74 ▼0.1139.47 ▼4.79
Dashboard /wp-admin2,209 ▲215.86 ▼0.0397.10 ▼8.4040.22 ▼0.60
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0139.93 ▲1.5335.96 ▼1.12
Add New Post /wp-admin/post-new.php1,533 ▼1422.86 ▲4.65567.75 ▼93.9752.77 ▲2.24
Media Library /wp-admin/upload.php1,385 ▼34.19 ▼0.0098.65 ▼15.9843.86 ▼4.97

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 return non-empty strings:
    • > /wp-content/plugins/wps-menu-exporter/wps-menu-exporter.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant WPS_MENU_EXPORTER_DIR - assumed 'WPS_MENU_EXPORTER_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wps-menu-exporter/autoload.php on line 203
    • > PHP Warning
      Use of undefined constant WPS_MENU_EXPORTER_DIR - assumed 'WPS_MENU_EXPORTER_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wps-menu-exporter/autoload.php on line 197
    • > PHP Fatal error
      Trait 'WPS\\WPS_Menu_Exporter\\Singleton' not found in wp-content/plugins/wps-menu-exporter/classes/plugin.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
The official readme.txt might help

wps-menu-exporter/wps-menu-exporter.php 85% from 13 tests

The main file in "WPS Menu Exporter" v. 1.3.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin886 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP14281428799
PO File1131562
JSON20025

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity13.71
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits1
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods55
▷ Static methods1832.73%
▷ Public methods4989.09%
▷ Protected methods47.27%
▷ Private methods23.64%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants5
▷ Global constants5100.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