83% purify-wp-menues

Code Review | Purify WordPress Menus

WordPress plugin Purify WordPress Menus scored83%from 54 tests.

About plugin

  • Plugin page: purify-wp-menues
  • Plugin version: 3.4.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 4, 2013
  • Latest release: Aug 10, 2023
  • Number of updates: 75
  • Update frequency: every 51.6 days
  • Top authors: Hinjiriyo (85.33%)kybernetikservices (16%)

Code review

54 tests

User reviews

6 reviews

Install metrics

800+ active /28,417 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.22MB] [CPU: ▼9.95ms] Passed 4 tests

Server-side resources used by Purify WordPress Menus
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1743.04 ▲0.63
Dashboard /wp-admin3.56 ▲0.2151.96 ▼11.20
Posts /wp-admin/edit.php3.67 ▲0.3150.33 ▲8.68
Add New Post /wp-admin/post-new.php6.14 ▲0.2583.37 ▼25.42
Media Library /wp-admin/upload.php3.48 ▲0.2536.23 ▼3.79
Purify WordPress Menus /wp-admin/options-general.php?page=hinjipwpm3.4536.75

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
purify_wp_menu_options_set
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Purify WordPress Menus
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4714.26 ▼0.082.04 ▲0.1743.23 ▼0.45
Dashboard /wp-admin2,202 ▲255.65 ▲0.1292.92 ▼2.0843.58 ▼0.39
Posts /wp-admin/edit.php2,104 ▲11.96 ▼0.0536.08 ▼2.9234.86 ▼2.31
Add New Post /wp-admin/post-new.php1,529 ▼623.10 ▲4.83677.46 ▲13.3761.03 ▼4.17
Media Library /wp-admin/upload.php1,401 ▲14.20 ▲0.11103.36 ▼10.4645.65 ▼3.02
Purify WordPress Menus /wp-admin/options-general.php?page=hinjipwpm1,1592.0124.8233.74

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/purify-wp-menues/admin/partials/hinjipwpm-admin-display.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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
Please fix the following attributes:
  • Tags: There are too many tags (16 tag instead of maximum 10)
Please take inspiration from this readme.txt

purify-wp-menues/purify_wp_menues.php 85% from 13 tests

The main file in "Purify WordPress Menus" v. 3.4.1 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:
  • 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
  • Main file name: The principal plugin file should be the same as the plugin slug ("purify-wp-menues.php" instead of "purify_wp_menues.php")

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
Good job! No executable or dangerous file extensions detected1,431 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP11231795819
PO File2130185601
CSS11211

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity22.00
▷ Minimum class complexity1.00
▷ Maximum class complexity128.00
Average method complexity4.34
▷ Minimum method complexity1.00
▷ Maximum method complexity84.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods44
▷ Static methods24.55%
▷ Public methods3988.64%
▷ Protected methods00.00%
▷ Private methods511.36%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin