77% simplificar-menu-de-administracion

Code Review | Simplificar menú de administración

WordPress plugin Simplificar menú de administración scored77%from 54 tests.

About plugin

  • Plugin page: simplificar-menu-...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Aug 14, 2021
  • Latest release: Nov 27, 2022
  • Number of updates: 10
  • Update frequency: every 47.1 days
  • Top authors: jlwebycomunicacion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /452 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.36ms] Passed 4 tests

A check of server-side resources used by Simplificar menú de administración
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0346.43 ▲2.60
Dashboard /wp-admin3.34 ▼0.0149.84 ▼16.01
Posts /wp-admin/edit.php3.39 ▲0.0351.26 ▼3.94
Add New Post /wp-admin/post-new.php5.92 ▲0.0397.36 ▼8.08
Media Library /wp-admin/upload.php3.26 ▲0.0340.39 ▲4.25
Simplificar menú /wp-admin/options-general.php?page=jlwebcom_simplifica_admin_menu_conf3.2029.48

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 16 new options
New WordPress options
jlwebcom_simplifica_admin_menu_Plugins-0
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
jlwebcom_simplifica_admin_menu_Tools
widget_recent-posts
jlwebcom_simplifica_admin_menu_Posts
jlwebcom_simplifica_admin_menu_Settings
jlwebcom_simplifica_admin_menu_Users
...

Browser metrics Passed 4 tests

A check of browser resources used by Simplificar menú de administración
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.78 ▲0.152.60 ▲0.8743.40 ▼2.94
Dashboard /wp-admin2,210 ▲194.84 ▼0.06100.99 ▼7.3939.04 ▲1.32
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0240.55 ▲0.2334.95 ▼0.66
Add New Post /wp-admin/post-new.php1,541 ▲2023.42 ▲0.09676.26 ▲34.7462.64 ▼5.65
Media Library /wp-admin/upload.php1,386 ▼24.19 ▼0.0098.54 ▼5.1342.75 ▼6.51
Simplificar menú /wp-admin/options-general.php?page=jlwebcom_simplifica_admin_menu_conf9082.0326.6125.10

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 detected upon uninstall: 16 options
    • can_compress_scripts
    • jlwebcom_simplifica_admin_menu_Plugins-0
    • jlwebcom_simplifica_admin_menu_Comments-00-Comments-in-moderation
    • jlwebcom_simplifica_admin_menu_Dashboard
    • jlwebcom_simplifica_admin_menu_Settings
    • jlwebcom_simplifica_admin_menu_Users
    • db_upgraded
    • jlwebcom_simplifica_admin_menu_Pages
    • widget_recent-posts
    • jlwebcom_simplifica_admin_menu_Posts
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=jlwebcom_simplifica_admin_menu_conf
    • > Warning in wp-content/plugins/simplificar-menu-de-administracion/jlwebcom-simplificar-admin-menu.php+101
    Use of undefined constant on - assumed 'on' (this will throw an Error in a future version of PHP)

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/simplificar-menu-de-administracion/jlwebcom-simplificar-admin-menu/index.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simplificar-menu-de-administracion/jlwebcom-simplificar-admin-menu.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/simplificar-menu-de-administracion/index.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simplificar-menu-de-administracion/jlwebcom-simplificar-admin-menu/jlwebcom-simplificar-admin-menu.php:17

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 83% 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
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Formulario de administración jlwebcom-simplificar-adminmenu-formulario.png), #2 (Menú con opciones limitadas jlwebcom-simplificar-adminmenu-resultado.png)
The official readme.txt is a good inspiration

simplificar-menu-de-administracion/jlwebcom-simplificar-admin-menu.php 69% from 13 tests

The main file in "Simplificar menú de administración" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simplificar-menu-de-administracion.php" instead of "jlwebcom-simplificar-admin-menu.php")
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0" instead of "7.2")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.9.4" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected271 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33342263
JSON1008

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions16
▷ Named functions16100.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
There are no PNG files in this plugin